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 |
---|---|
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) |
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.OutputStream
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
protected void increase(int newCapacity)
public long size()
size
in class BufferedOutputStream
public long capacity()
public java.nio.ByteBuffer buffer()
BufferedOutputStream
ByteBuffer
buffer
in class BufferedOutputStream