public class ByteBufferedOutputStream extends BufferedOutputStream
| Modifier and Type | Field and Description |
|---|---|
static float |
DEFAULT_INCREASING_FACTOR |
| Constructor and Description |
|---|
ByteBufferedOutputStream(int size) |
ByteBufferedOutputStream(int size,
boolean onHeap) |
ByteBufferedOutputStream(int size,
float increasingBy) |
ByteBufferedOutputStream(int size,
float increasingBy,
boolean onHeap) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
buffer()
Returns the backing
ByteBuffer |
long |
capacity() |
protected void |
increase(int newCapacity) |
long |
size() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
close, flush, writepublic static final float DEFAULT_INCREASING_FACTOR
public ByteBufferedOutputStream(int size)
public ByteBufferedOutputStream(int size,
boolean onHeap)
public ByteBufferedOutputStream(int size,
float increasingBy)
public ByteBufferedOutputStream(int size,
float increasingBy,
boolean onHeap)
public void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionprotected void increase(int newCapacity)
public long size()
size in class BufferedOutputStreampublic long capacity()
public ByteBuffer buffer()
BufferedOutputStreamByteBufferbuffer in class BufferedOutputStreamCopyright © 2018. All rights reserved.