public interface ByteArrayWriter
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this writer and releases any associated system resources.
|
void |
flush()
Forces writing of any buffered data.
|
void |
write(byte[] data,
int length)
Outputs a byte array.
|
void write(byte[] data, int length) throws IOException
data
- Byte array to outputlength
- Number of bytes to outputIOException
- Writing failedvoid flush() throws IOException
IOException
- Writing failedvoid close() throws IOException
IOException
- Closing failedCopyright © 2020. All rights reserved.