|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jniwrapper.Parameter
com.jniwrapper.WideStringArray
public class WideStringArray
This type is specially designed for reading/writing double zero terminated (Unicode) string arrays.
Field Summary |
---|
Fields inherited from class com.jniwrapper.Parameter |
---|
LICENSE_TYPE, V |
Constructor Summary | |
---|---|
WideStringArray()
|
|
WideStringArray(int maxLen)
|
|
WideStringArray(java.lang.String[] s)
|
|
WideStringArray(java.lang.String[] s,
int maxLen)
|
|
WideStringArray(WideStringArray t)
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.jniwrapper.Parameter |
---|
acceptIOPerformer, dataBufferAssigned, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, indent, pop, push, read, read, setDataBuffer, toByteArray, write |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WideStringArray()
public WideStringArray(int maxLen)
public WideStringArray(java.lang.String[] s)
public WideStringArray(java.lang.String[] s, int maxLen)
public WideStringArray(WideStringArray t)
Method Detail |
---|
protected java.lang.String bytesToString(byte[] bytes)
protected byte[] stringToBytes(java.lang.String value)
public java.lang.Object clone()
clone
in class Parameter
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.
equals
in class Parameter
obj
- a value to compare this object to.
true
if two objects are equal.public int hashCode()
hashCode
in class Parameter
public int getLength()
Parameter
sizeof()
operator.
getLength
in class Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |