OutputStream in
ByteBuffers.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| private List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public List | |
| public void | |
| public void | |
| public void | |
| public void | write(int
the b)byte.Implements abstract java. |
| public void | write(byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. len bytes from the specified byte array
starting at offset off to this output stream.
|
| public void |
| BUFFER_SIZE | back to summary |
|---|---|
| public static final int BUFFER_SIZE | |
| buffers | back to summary |
|---|---|
| private List<ByteBuffer> buffers | |
| ByteBufferOutputStream | back to summary |
|---|---|
| public ByteBufferOutputStream() | |
| append | back to summary |
|---|---|
| public void append(List<ByteBuffer> lists) Append a list of ByteBuffers to this stream. | |
| getBufferList | back to summary |
|---|---|
| public List Returns all data written and resets the stream to be empty. | |
| prepend | back to summary |
|---|---|
| public void prepend(List<ByteBuffer> lists) Prepend a list of ByteBuffers to this stream. | |
| reset | back to summary |
|---|---|
| public void reset() | |
| write | back to summary |
|---|---|
| public void write(ByteBuffer buffer) | |
| write | back to summary |
|---|---|
| public void write(int b) Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) Overrides java. Doc from java. Writes
If
If
| |
| writeBuffer | back to summary |
|---|---|
| public void writeBuffer(ByteBuffer buffer) throws IOException Add a buffer to the output without copying, if possible. | |