|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.prodevelop.gvsig.mobile.fmap.util.bytebuffer.FalseByteBuffer
This class replaces the byte buffer used in J2SE to store a file in memory.
ByteOrder
Constructor Summary | |
FalseByteBuffer(byte[] bb)
Constructor |
Method Summary | |
byte |
getByte()
|
byte |
getByte(int ind)
Gets one byte |
void |
getBytes(byte[] out)
Gets some bytes. |
double |
getDouble()
|
int |
getInt()
|
int |
getInt(int index)
Gets the integer at a certain position |
int |
getPosition()
|
short |
getShort()
|
void |
position(int p)
Moves file cursor to position p |
void |
setByteOrder(java.nio.ByteOrder o)
Sets byte order (big endian, little endian) |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FalseByteBuffer(byte[] bb)
bb
- array of bytes to be storedMethod Detail |
public void position(int p)
p
- the new positionpublic int getPosition()
public byte getByte()
public byte getByte(int ind)
ind
- index of the byte of interest
public int getInt()
public short getShort()
public int getInt(int index)
index
- the index of interest
public void getBytes(byte[] out)
out
- the array of bytes to be filledpublic double getDouble()
public void setByteOrder(java.nio.ByteOrder o)
o
- byte order (big endian, little endian)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |