Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
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 © 2000–2016 AO Industries, Inc.. All rights reserved.