|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.jniwrapper.Parameter
|
+--com.jniwrapper.ZeroTerminatedString
Base class for all types of zero-terminated strings.
NOTE: All string lengths include the terminating zero character unless otherwise noted.
| Constructor Summary | |
protected |
ZeroTerminatedString(java.lang.String s,
int len,
int charLength)
Constructs string with specified value, maximum length and characted type (1-byte or 2-byte) |
| Method Summary | |
protected Parameter |
asReturnValue()
Returns a parameter that represents this one as a return value. |
boolean |
equals(java.lang.Object obj)
Compares this Parameter object to a given object. |
protected int |
getAlignedLength()
Returns parameter length in bytes aligned to default alignment. |
protected int |
getCharLength()
Returns character length in bytes |
int |
getLength()
Returns length of this string object. |
int |
getMaxLength()
Returns maximum length of a string |
abstract java.lang.String |
getValue()
Returns string value |
void |
pop(DataBuffer stackBuffer,
int offset)
Default implementation, which does nothing as most primitive types do nothing on pop. |
void |
push(DataBuffer stackBuffer,
int offset)
Writes a parameter to a function stacks |
void |
read(DataBuffer stackBuffer,
int offset)
Reads this parameter from a specified data source. |
abstract void |
setValue(java.lang.String val)
Sets string value |
java.lang.String |
toString()
|
void |
write(DataBuffer stackBuffer,
int offset)
Writes this parameter to a specified data source. |
| Methods inherited from class com.jniwrapper.Parameter |
acceptIOPerformer, clone, getBuffer, getOffset, indent, read, setBuffer, toByteArray, write |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected ZeroTerminatedString(java.lang.String s,
int len,
int charLength)
| Method Detail |
public int getMaxLength()
public abstract void setValue(java.lang.String val)
public abstract java.lang.String getValue()
protected int getCharLength()
public int getLength()
getMaxLength() method.
getLength in class Parameterprotected int getAlignedLength()
Parameter
getAlignedLength in class Parameter
public void push(DataBuffer stackBuffer,
int offset)
Parameter
push in class Parameterprotected Parameter asReturnValue()
Parameter
asReturnValue in class Parameterthis
public void pop(DataBuffer stackBuffer,
int offset)
throws MemoryAccessViolationException
Parameter
pop in class ParameterMemoryAccessViolationException
public void write(DataBuffer stackBuffer,
int offset)
throws MemoryAccessViolationException
Parameter
write in class ParameterMemoryAccessViolationException
public void read(DataBuffer stackBuffer,
int offset)
throws MemoryAccessViolationException
Parameter
read in class ParameterMemoryAccessViolationExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
ParameterParameter 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 Parameterobj - value to compare this object to
true if two objects are equal.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||