public class ByteBufferOutputStream extends OutputStream
ByteBuffer that grows automatically to accommodate the data.| Constructor and Description |
|---|
ByteBufferOutputStream()
Creates a new byte buffer output stream.
|
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
flip()
Flips and returns the buffer.
|
ByteBuffer |
getBuffer()
Returns a reference to the underlying buffer.
|
void |
reset()
Resets our internal buffer.
|
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
close, flush, writepublic ByteBufferOutputStream()
public ByteBuffer getBuffer()
public ByteBuffer flip()
reset() to reset the buffer before
writing again.public void reset()
public void write(int b)
write in class OutputStreampublic void write(byte[] b,
int off,
int len)
write in class OutputStreamCopyright © 2015. All rights reserved.