Closeable, Flushable, AutoCloseablepublic class ByteBufferBackedOutputStream extends OutputStream
OutputStream implementation that appends content
written in given ByteBuffer instance.| Modifier and Type | Field | Description |
|---|---|---|
protected ByteBuffer |
_b |
| Constructor | Description |
|---|---|
ByteBufferBackedOutputStream(ByteBuffer buf) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
write(byte[] bytes,
int off,
int len) |
|
void |
write(int b) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, flush, writeprotected final ByteBuffer _b
public ByteBufferBackedOutputStream(ByteBuffer buf)
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] bytes,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionCopyright © 2008–2018. All rights reserved.