|
JNative v1.3 project : see http://jnative.sf.net |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xvolks.jnative.pointers.Pointer
org.xvolks.jnative.pointers.NullPointer
public class NullPointer
$Id: NullPointer.java,v 1.8 2006/06/09 20:44:04 mdenty Exp $;
This class encapsulate a native NULL pointer.
Field Summary | |
---|---|
static Pointer |
NULL
|
Constructor Summary | |
---|---|
NullPointer()
Constructor creates a null Pointer with a size of allocated memory set to zero |
Method Summary | |
---|---|
void |
dispose()
Method dispose does nothing because there is no need to free some memory |
byte |
getAsByte(int offset)
Method getAsByte |
int |
getAsInt(int offset)
Method getAsInt |
long |
getAsLong(int offset)
Method getAsLong |
short |
getAsShort(int offset)
Method getAsShort |
java.lang.String |
getAsString()
Method getAsString |
byte[] |
getMemory()
Method getMemory |
int |
getPointer()
Method getPointer |
int |
getSize()
Method getSize |
int |
setByteAt(int offset,
byte value)
Method setByteAt |
int |
setIntAt(int offset,
int value)
Method setIntAt |
int |
setLongAt(int offset,
int value)
Method setLongAt |
void |
setMemory(byte[] buffer)
Method setMemory |
void |
setMemory(java.lang.String buffer)
Method setMemory |
int |
setShortAt(int offset,
short value)
Method setShortAt |
int |
setStringAt(int offset,
java.lang.String value)
Method setStringAt |
void |
zeroMemory()
Method zeroMemory |
Methods inherited from class org.xvolks.jnative.pointers.Pointer |
---|
asLONG, finalize, getAsDouble, getAsFloat, isNull, setDoubleAt, setFloatAt, setLongAt |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static Pointer NULL
Constructor Detail |
---|
public NullPointer()
Method Detail |
---|
public void dispose()
dispose
in class Pointer
public int getPointer()
getPointer
in class Pointer
public int getSize()
getSize
in class Pointer
public byte getAsByte(int offset) throws NativeException
getAsByte
in class Pointer
offset
- not used
NativeException
java.lang.NullPointerException
- allwayspublic int getAsInt(int offset) throws NativeException
getAsInt
in class Pointer
offset
- not used
NativeException
java.lang.NullPointerException
- allwayspublic long getAsLong(int offset) throws NativeException
getAsLong
in class Pointer
offset
- not used
NativeException
java.lang.NullPointerException
- allwayspublic short getAsShort(int offset) throws NativeException
getAsShort
in class Pointer
offset
- not used
NativeException
java.lang.NullPointerException
- allwayspublic java.lang.String getAsString() throws NativeException
getAsString
in class Pointer
NativeException
java.lang.NullPointerException
- allwayspublic byte[] getMemory() throws NativeException
getMemory
in class Pointer
NativeException
java.lang.NullPointerException
- allwayspublic int setByteAt(int offset, byte value) throws NativeException
setByteAt
in class Pointer
offset
- not usedvalue
- not used
NativeException
java.lang.NullPointerException
- allwayspublic int setIntAt(int offset, int value) throws NativeException
setIntAt
in class Pointer
offset
- not usedvalue
- not used
NativeException
java.lang.NullPointerException
- allwayspublic int setLongAt(int offset, int value) throws NativeException
offset
- not usedvalue
- not used
NativeException
java.lang.NullPointerException
- allwayspublic void setMemory(java.lang.String buffer) throws NativeException
setMemory
in class Pointer
buffer
- not used
NativeException
java.lang.NullPointerException
- allwayspublic void setMemory(byte[] buffer) throws NativeException
setMemory
in class Pointer
buffer
- not used
NativeException
java.lang.NullPointerException
- allwayspublic int setShortAt(int offset, short value) throws NativeException
setShortAt
in class Pointer
offset
- not usedvalue
- not used
NativeException
java.lang.NullPointerException
- allwayspublic int setStringAt(int offset, java.lang.String value) throws NativeException
setStringAt
in class Pointer
offset
- not usedvalue
- not used
NativeException
java.lang.NullPointerException
- allwayspublic void zeroMemory() throws NativeException
zeroMemory
in class Pointer
java.lang.NullPointerException
- allways
NativeException
|
JNative v1.3 project : see http://jnative.sf.net |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |