public class AoByteArrayOutputStream extends ByteArrayOutputStream
byte[]buf, count| Constructor and Description |
|---|
AoByteArrayOutputStream() |
AoByteArrayOutputStream(int size) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getInternalByteArray()
Provides direct access to the internal byte[] to avoid unnecessary
copying of the array.
|
void |
writeTo(OutputStream out,
int off,
int len)
Writes a portion of the contents of the buffer to another byte stream.
|
void |
writeTo(RandomAccessFile raf) |
void |
writeTo(RandomAccessFile raf,
int off,
int len) |
close, reset, size, toByteArray, toString, toString, toString, write, write, writeToflush, writepublic AoByteArrayOutputStream()
public AoByteArrayOutputStream(int size)
public byte[] getInternalByteArray()
public void writeTo(OutputStream out, int off, int len) throws IOException
IOExceptionpublic void writeTo(RandomAccessFile raf) throws IOException
IOExceptionpublic void writeTo(RandomAccessFile raf, int off, int len) throws IOException
IOExceptionCopyright © 2016. All rights reserved.