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, writeTo
flush, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
reset, size, toByteArray, toString
public ByteArrayOutputStream()
public ByteArrayOutputStream(int size)
public void writeTo(IOutputStream out) throws IOException
IByteArrayOutputStream
out.write(buf, 0, count)
.writeTo
in interface IByteArrayOutputStream
out
- the output stream to which to write the data.IOException
- if an I/O error occurs.Copyright © 2013–2019. All rights reserved.