|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ByteStore
The ByteStore
class is used to provide access
to a byte
buffer. This allows objects to share
a byte
buffer without the problems of readers
and writers changing the data. This data is read only and
it provides simple methods to access the bytes stored.
Method Summary | |
---|---|
byte |
getByte(int pos)
This is basically a simple read method for the bytes in the ByteStore . |
void |
getBytes(int pos,
byte[] b)
This is basically a simple read method for the bytes in the ByteStore . |
void |
getBytes(int pos,
byte[] b,
int off,
int len)
This is basically a simple read method for the bytes in the ByteStore . |
int |
length()
This returns the number of bytes that this ByteStore object contains. |
Method Detail |
---|
byte getByte(int pos)
ByteStore
. This will allow a user to
read from the ByteStore
at the specified
positions. Concurrent threads can access the
ByteStore
because it is a read-only object.
pos
- the position to read from the
ByteStore
void getBytes(int pos, byte[] b)
ByteStore
. This will allow a user to
read from the ByteStore
at the specified
positions. Concurrent threads can access the
ByteStore
because it is a read-only object.
pos
- the position to read from the
ByteStore
b
- the byte buffer to fill with the bytesvoid getBytes(int pos, byte[] b, int off, int len)
ByteStore
. This will allow a user to
read from the ByteStore
at the specified
positions. Concurrent threads can access the
ByteStore
because it is a read-only object.
pos
- the position to read from the
ByteStore
b
- the byte buffer to fill with the bytesoff
- position in the buffer to write the byteslen
- the number of bytes to be read fromint length()
ByteStore
object contains.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |