public class ByteBufferOutputStream
extends java.io.OutputStream
BufferOverflowException if the buffer capacity is exceeded.| Modifier and Type | Field and Description |
|---|---|
(package private) java.nio.ByteBuffer |
_buffer |
| Constructor and Description |
|---|
ByteBufferOutputStream(java.nio.ByteBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreampublic void flush()
flush in interface java.io.Flushableflush in class java.io.OutputStreampublic void write(byte[] b)
write in class java.io.OutputStreampublic void write(byte[] b,
int off,
int len)
write in class java.io.OutputStreampublic void write(int b)
write in class java.io.OutputStream