public class ByteBufferedOutputStream extends BufferedOutputStream
| Modifier and Type | Field and Description |
|---|---|
private java.nio.ByteBuffer |
buffer |
static float |
DEFAULT_INCREASING_FACTOR |
private float |
increasing |
private boolean |
onHeap |
| 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 |
|---|---|
java.nio.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) |
private java.nio.ByteBuffer buffer
private boolean onHeap
private float increasing
public 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 java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionprotected void increase(int newCapacity)
public long size()
size in class BufferedOutputStreampublic long capacity()
public java.nio.ByteBuffer buffer()
BufferedOutputStreamByteBufferbuffer in class BufferedOutputStream