| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv byte[] | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | SimpleByteBuffer(byte[]
assumed to be owned by this new instance. bytes, int start, int length)Creates a read-write buffer. |
| public | SimpleByteBuffer(byte[]
assumed to be owned by this new instance. bytes, int start, int length, boolean isReadOnly)
|
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | getBytes()
Implements com. Makes a copy of the internal byte array. |
| public int | getBytes(byte[]
users byte array to copy into buffer, int first byte of the array to use offset, int length of the byte array available to copy into length)Implements com. copies the contents of the buffer into a user supplied byte array. |
| public int | |
| public ByteReader | getReader()
Implements com. creates a reader and sets it to the beginning of the buffer under managment here for use. |
| public ByteWriter | getWriter()
Implements com. creates a writer and sets it to the beginning of the buffer under managment here for use. |
| public void | writeBytes(OutputStream
stream to write into out)Implements com. copies the contents of the buffer into and output stream. |