public class ByteArrayOutputStream extends ByteArrayOutputStream implements IByteArrayOutputStream
ByteArrayOutputStream also implementing IByteArrayOutputStream.buf, count| Constructor and Description |
|---|
ByteArrayOutputStream() |
ByteArrayOutputStream(int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
writeTo(IOutputStream out)
Writes the complete contents of this byte array output stream to
the specified output stream argument, as if by calling the output
stream's write method using
out.write(buf, 0, count). |
close, reset, size, toByteArray, toString, toString, toString, write, write, writeToflush, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreset, size, toByteArray, toStringpublic ByteArrayOutputStream()
public ByteArrayOutputStream(int size)
public void writeTo(IOutputStream out) throws IOException
IByteArrayOutputStreamout.write(buf, 0, count).writeTo in interface IByteArrayOutputStreamout - the output stream to which to write the data.IOException - if an I/O error occurs.Copyright © 2013–2019. All rights reserved.