BufferedWriterDecorator
, LockedFileOutputStreamWriter
, OutputStreamWriter
, SynchronizedWriterDecorator
public interface ByteArrayWriter
Modifier and Type | Method | 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 java.io.IOException
data
- Byte array to outputlength
- Number of bytes to outputjava.io.IOException
- Writing failedvoid flush() throws java.io.IOException
java.io.IOException
- Writing failedvoid close() throws java.io.IOException
java.io.IOException
- Closing failedCopyright © 2018. All rights reserved.