public class ByteBufferOutputStream
extends java.io.OutputStream
| Modifier and Type | Field and Description |
|---|---|
protected int |
mCount |
protected byte[] |
mData |
protected int |
mMaximumGrow |
| Constructor and Description |
|---|
ByteBufferOutputStream(int pInitialCapacity,
int pMaximumGrow) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.nio.ByteBuffer |
toByteBuffer() |
void |
write(byte[] pData,
int pOffset,
int pLength) |
void |
write(int pByte) |
protected final int mMaximumGrow
protected byte[] mData
protected int mCount
public ByteBufferOutputStream(int pInitialCapacity,
int pMaximumGrow)
public void write(int pByte)
write in class java.io.OutputStreampublic void write(byte[] pData,
int pOffset,
int pLength)
write in class java.io.OutputStreampublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic java.nio.ByteBuffer toByteBuffer()