| 
 JNative 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.3 2006/01/14 19:27:01 mdenty Exp $;
This class encapsulate a native NULL pointer.
| 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 | 
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 | 
|---|
finalize, getPointer, getSize, setLongAt | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public NullPointer()
| Method Detail | 
|---|
public void dispose()
dispose in class Pointer
public byte getAsByte(int offset)
               throws NativeException
getAsByte in class Pointeroffset - not used
NativeException
java.lang.NullPointerException - allways
public int getAsInt(int offset)
             throws NativeException
getAsInt in class Pointeroffset - not used
NativeException
java.lang.NullPointerException - allways
public long getAsLong(int offset)
               throws NativeException
getAsLong in class Pointeroffset - not used
NativeException
java.lang.NullPointerException - allways
public short getAsShort(int offset)
                 throws NativeException
getAsShort in class Pointeroffset - not used
NativeException
java.lang.NullPointerException - allways
public java.lang.String getAsString()
                             throws NativeException
getAsString in class PointerNativeException
java.lang.NullPointerException - allways
public byte[] getMemory()
                 throws NativeException
getMemory in class PointerNativeException
java.lang.NullPointerException - allways
public int setByteAt(int offset,
                     byte value)
              throws NativeException
setByteAt in class Pointeroffset - not usedvalue - not used
NativeException
java.lang.NullPointerException - allways
public int setIntAt(int offset,
                    int value)
             throws NativeException
setIntAt in class Pointeroffset - not usedvalue - not used
NativeException
java.lang.NullPointerException - allways
public int setLongAt(int offset,
                     int value)
              throws NativeException
offset - not usedvalue - not used
NativeException
java.lang.NullPointerException - allways
public void setMemory(java.lang.String buffer)
               throws NativeException
setMemory in class Pointerbuffer - not used
NativeException
java.lang.NullPointerException - allways
public void setMemory(byte[] buffer)
               throws NativeException
setMemory in class Pointerbuffer - not used
NativeException
java.lang.NullPointerException - allways
public int setShortAt(int offset,
                      short value)
               throws NativeException
setShortAt in class Pointeroffset - not usedvalue - not used
NativeException
java.lang.NullPointerException - allways
public int setStringAt(int offset,
                       java.lang.String value)
                throws NativeException
setStringAt in class Pointeroffset - not usedvalue - not used
NativeException
java.lang.NullPointerException - allways
public void zeroMemory()
                throws NativeException
zeroMemory in class Pointerjava.lang.NullPointerException - allways
NativeException
  | 
 JNative project : see http://jnative.sf.net  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||