BufferedWriterDecorator
, CharsetAdjustmentWriterDecorator
, 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) |
Deprecated.
Replaced by
write(byte[], int, int) |
void |
write(byte[] data,
int offset,
int length) |
Outputs a byte array.
|
@Deprecated void write(byte[] data, int length) throws java.io.IOException
write(byte[], int, int)
data
- Byte array to outputlength
- Number of bytes to outputjava.io.IOException
- Writing failedvoid write(byte[] data, int offset, int length) throws java.io.IOException
data
- Byte array to outputoffset
- Start offset 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 © 2021. All rights reserved.