| java.lang.Object java.io.OutputStream com.jofti.util.FastByteArrayOutputStream
FastByteArrayOutputStream | public class FastByteArrayOutputStream extends OutputStream (Code) | | ByteArrayOutputStream implementation that doesn't synchronize methods
and doesn't copy the data on toByteArray().
|
Method Summary | |
public byte[] | getByteArray() Returns the byte array containing the written data. | public int | getSize() | public void | reset() | final public void | write(byte b) | final public void | write(byte b, int off, int len) | final public void | write(int b) |
buf | protected byte[] buf(Code) | | Buffer and size
|
initSize | protected int initSize(Code) | | |
realSize | public int realSize(Code) | | |
FastByteArrayOutputStream | public FastByteArrayOutputStream(int initSize)(Code) | | Constructs a stream with the given initial size
|
getByteArray | public byte[] getByteArray()(Code) | | Returns the byte array containing the written data. Note that this
array will almost always be larger than the amount of data actually
written.
|
getSize | public int getSize()(Code) | | |
reset | public void reset()(Code) | | |
write | final public void write(byte b)(Code) | | |
write | final public void write(byte b, int off, int len)(Code) | | |
write | final public void write(int b)(Code) | | |
|
|