public class AnsiStringArray extends Parameter
LICENSE_TYPE, V
Constructor and Description |
---|
AnsiStringArray() |
AnsiStringArray(AnsiStringArray t) |
AnsiStringArray(int maxLen) |
AnsiStringArray(java.lang.String[] s) |
AnsiStringArray(java.lang.String[] s,
int maxLen) |
Modifier and Type | Method and Description |
---|---|
protected Parameter |
asReturnValue()
Returns a parameter that represents this one as a return value.
|
protected java.lang.String |
bytesToString(byte[] bytes) |
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object obj)
Compares this
Parameter object to a given object. |
protected int |
getAlignedLength()
Returns a parameter length in bytes aligned to default alignment.
|
protected int |
getCharLength()
Returns the character length in bytes.
|
java.lang.String |
getDebugInfo()
Return debug info for JNIWrapper parameter.
|
int |
getLength()
Returns the length of the parameter in memory.
|
int |
getMaxLength()
Returns the maximum length of a string.
|
protected int |
getStrLen(DataBuffer dataBuffer,
int startOffset) |
java.lang.String[] |
getValue() |
int |
hashCode() |
void |
read(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
Reads this parameter from a specified data source.
|
void |
setValue(java.lang.String[] value) |
protected byte[] |
stringToBytes(java.lang.String value) |
byte[] |
toBytes(java.lang.String[] value) |
void |
write(DataBuffer stackBuffer,
int offset,
boolean invokedByCallback)
Writes this parameter to a specified data source.
|
acceptIOPerformer, dataBufferAssigned, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, indent, pop, push, read, read, setDataBuffer, toByteArray, write
public AnsiStringArray()
public AnsiStringArray(int maxLen)
public AnsiStringArray(java.lang.String[] s)
public AnsiStringArray(java.lang.String[] s, int maxLen)
public AnsiStringArray(AnsiStringArray t)
protected java.lang.String bytesToString(byte[] bytes)
protected byte[] stringToBytes(java.lang.String value)
protected int getStrLen(DataBuffer dataBuffer, int startOffset)
public int getMaxLength()
charLength
is 1. In these cases
ANSI string may not be able to hold getMaxLength()
characters. Creating a new
AnsiString
object with the string as a parameter or using WideString
eliminates this problem.public final void setValue(java.lang.String[] value)
public final byte[] toBytes(java.lang.String[] value)
public final java.lang.String[] getValue()
protected int getCharLength()
protected int getAlignedLength()
Parameter
getAlignedLength
in class Parameter
protected Parameter asReturnValue()
Parameter
asReturnValue
in class Parameter
this
public void write(DataBuffer stackBuffer, int offset, boolean invokedByCallback) throws MemoryAccessViolationException
Parameter
write
in class Parameter
MemoryAccessViolationException
public void read(DataBuffer stackBuffer, int offset, boolean invokedByCallback) throws MemoryAccessViolationException
Parameter
read
in class Parameter
MemoryAccessViolationException
public java.lang.String getDebugInfo()
Parameter
getDebugInfo
in class Parameter
public boolean equals(java.lang.Object obj)
Parameter
Parameter
object to a given object. Two
Parameter
objects are considered equal if their byte
representations are equal and they are of the same type. Subclasses may
override this method as appropriate.