|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectneustore.base.ByteArray
public class ByteArray
A class that provides basic read/write operators on a byte array.
Field Summary | |
---|---|
static boolean |
READ
|
static boolean |
WRITE
|
Constructor Summary | |
---|---|
ByteArray(byte[] _buf,
boolean isRead)
Constructor. |
Method Summary | |
---|---|
void |
read(byte[] b)
Reads from the byte array to fill a passed buffer. |
int |
readInt()
Reads an integer. |
void |
write(byte[] b)
Writes the passed buffer to the byte array. |
void |
writeInt(int value)
Writes an integer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean READ
public static final boolean WRITE
Constructor Detail |
---|
public ByteArray(byte[] _buf, boolean isRead)
_buf
- the associated byte arrayisRead
- whether to read or writeMethod Detail |
---|
public int readInt() throws java.io.IOException
java.io.IOException
public void read(byte[] b) throws java.io.IOException
b.length
.
b
- buffer to read to.
java.io.IOException
public void writeInt(int value) throws java.io.IOException
value
- the integer to write
java.io.IOException
public void write(byte[] b) throws java.io.IOException
b
- the passed buffer
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |