public class UnsyncByteArrayOutputStream extends OutputStream
| Constructor and Description |
|---|
UnsyncByteArrayOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
reset() |
byte[] |
toByteArray() |
void |
write(byte[] arg0) |
void |
write(byte[] arg0,
int arg1,
int arg2) |
void |
write(int arg0) |
void |
writeTo(OutputStream out)
Takes the contents of this stream and writes it to the output stream
out. |
close, flushpublic void write(byte[] arg0)
write in class OutputStreampublic void write(byte[] arg0,
int arg1,
int arg2)
write in class OutputStreampublic void write(int arg0)
write in class OutputStreampublic byte[] toByteArray()
public void reset()
public void writeTo(OutputStream out) throws IOException
out.out - an OutputStream on which to write the contents of this stream.IOException - if an error occurs while writing to out.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.