| Modifier and Type | Field and Description |
|---|---|
| protected ByteBuffer | |
| private ReadableByteChannel | |
| private InputStream | |
| private WritableByteChannel | |
| private OutputStream |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public int | |
| public ByteBuffer | |
| public boolean | |
| public byte | peek(int
an position)int valueImplements org. |
| public int | peek(int
an index, byte[] int valueThe byte array to peek into b, int The offset into the array to start peeking offset, int an length)int valueImplements org. |
| public void | poke(int
an index, byte int valuea b)byte valueImplements org. |
| public int | poke(int
an index, Buffer int valuea src)Buffer. If the source buffer is not modifiedOverrides org. Implements org. |
| public int | poke(int
an index, byte[] int valuea b, int offset, int length)byte array valueOverrides org. Implements org. |
| public int | readFrom(InputStream
input stream in, int maximum number of bytes that may be read max)Overrides org. Implements org. |
| public void | writeTo(OutputStream out)
Overrides org. Implements org. |
| _buf | back to summary |
|---|---|
| protected ByteBuffer _buf | |
| _in | back to summary |
|---|---|
| private ReadableByteChannel _in | |
| _inStream | back to summary |
|---|---|
| private InputStream _inStream | |
| _out | back to summary |
|---|---|
| private WritableByteChannel _out | |
| _outStream | back to summary |
|---|---|
| private OutputStream _outStream | |
| DirectNIOBuffer | back to summary |
|---|---|
| public DirectNIOBuffer(int size) | |
| DirectNIOBuffer | back to summary |
|---|---|
| public DirectNIOBuffer(ByteBuffer buffer, boolean immutable) | |
| DirectNIOBuffer | back to summary |
|---|---|
| public DirectNIOBuffer(File file) throws IOException | |
| array | back to summary |
|---|---|
| public byte[] array() Implements org. Doc from org. Get the underlying array, if one exists.
| |
| capacity | back to summary |
|---|---|
| public int capacity() Implements org. Doc from org. The capacity of the buffer. This is the maximum putIndex that may be set.
| |
| getByteBuffer | back to summary |
|---|---|
| public ByteBuffer getByteBuffer() Implements org. | |
| isDirect | back to summary |
|---|---|
| public boolean isDirect() Implements org. | |
| peek | back to summary |
|---|---|
| public byte peek(int position) Implements org. Doc from org. Get the byte at a specific index in the buffer.
| |
| peek | back to summary |
|---|---|
| public int peek(int index, byte[] b, int offset, int length) Implements org.
| |
| poke | back to summary |
|---|---|
| public void poke(int index, byte b) Implements org. Doc from org. Put a specific byte to a specific getIndex.
| |
| poke | back to summary |
|---|---|
| public int poke(int index, Buffer src) Overrides org. Implements org. Doc from org. Put the contents of the buffer at the specific index.
| |
| poke | back to summary |
|---|---|
| public int poke(int index, byte[] b, int offset, int length) Overrides org. Implements org. Doc from org. Put a specific byte to a specific getIndex.
| |
| readFrom | back to summary |
|---|---|
| public int readFrom(InputStream in, int max) throws IOException Overrides org. Implements org. Doc from org. Read the buffer's contents from the input stream
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(OutputStream out) throws IOException Overrides org. Implements org. Doc from org. Write the buffer's contents to the output stream | |