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, write
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 IOException
write
in class OutputStream
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
protected void increase(int newCapacity)
public long size()
size
in class BufferedOutputStream
public long capacity()
public ByteBuffer buffer()
BufferedOutputStream
ByteBuffer
buffer
in class BufferedOutputStream
Copyright © 2015. All rights reserved.