java.lang.Object | +--com.neva.ExternalObject
Class ExternalObject provides the protocol for manipulating memory blocks allocated outside Java sandbox.
| Constructor Summary | |
ExternalObject()
Creates an ExternalObject |
|
ExternalObject(boolean e)
Creates an ExternalObject from Boolean |
|
ExternalObject(byte[] e,
int size)
Creates an ExternalObject from a byte array. |
|
ExternalObject(int e)
Creates an ExternalObject from integer |
|
ExternalObject(java.lang.String e)
Creates an ExternalObject from a String. |
|
| Method Summary | |
int |
getLength()
Answers the length attribute of an ExternalObject. |
int |
getValue()
Answers the value attribute of an ExternalObject. |
void |
setLength(int len)
Sets the length attribute. |
void |
setValue(int val)
Sets the value attribute. |
byte[] |
valueAsByteArray(int size)
Moves size bytes from the external heap and answers them as a byte array. |
java.lang.String |
valueAsString()
Moves bytes from the external heap up to 0x00 byte and answers them as a Java String |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ExternalObject()
public ExternalObject(boolean e)
public ExternalObject(byte[] e,
int size)
public ExternalObject(int e)
public ExternalObject(java.lang.String e)
| Method Detail |
public int getLength()
public int getValue()
public void setLength(int len)
public void setValue(int val)
public byte[] valueAsByteArray(int size)
throws java.lang.NullPointerException
java.lang.NullPointerException
public java.lang.String valueAsString()
throws java.lang.NullPointerException
java.lang.NullPointerException