Traditional write operations: (as defined by java.) where the
target method is responsible for either copying the data or completing the write before returning
from the method call.
Lazy write operations: where the caller guarantees that it will never modify the provided buffer and it can therefore be considered immutable. The target method is free to maintain a reference to the buffer beyond the scope of the method call (e.g. until the write operation completes).
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public abstract void | write(byte[]
the bytes to be written value, int the offset of the start of the writable range offset, int the number of bytes to write starting from length)offsetWrites a sequence of bytes. |
| public abstract void | write(ByteBuffer
the bytes to be written. Upon returning from this call, the value)position of
this buffer will be set to the limitWrites a sequence of bytes. |
| public abstract void | writeLazy(byte[]
the bytes to be written value, int the offset of the start of the writable range offset, int the number of bytes to write starting from length)offsetWrites a sequence of bytes. |
| public abstract void | writeLazy(ByteBuffer
the bytes to be written. Upon returning from this call, the value)position of
this buffer will be set to the limitWrites a sequence of bytes. |
| ByteOutput | back to summary |
|---|---|
| public ByteOutput() | |
| write | back to summary |
|---|---|
| public abstract void write(byte value) throws IOException Writes a single byte.
| |
| write | back to summary |
|---|---|
| public abstract void write(byte[] value, int offset, int length) throws IOException Writes a sequence of bytes. The Note This method MUST NOT modify the
| |
| write | back to summary |
|---|---|
| public abstract void write(ByteBuffer value) throws IOException Writes a sequence of bytes. The Note This method MUST NOT modify the
| |
| writeLazy | back to summary |
|---|---|
| public abstract void writeLazy(byte[] value, int offset, int length) throws IOException Writes a sequence of bytes. The Note This method MUST NOT modify the
| |
| writeLazy | back to summary |
|---|---|
| public abstract void writeLazy(ByteBuffer value) throws IOException Writes a sequence of bytes. The Note This method MUST NOT modify the
| |