public class EncodedOutputStreamWriter extends Writer
| Constructor and Description |
|---|
EncodedOutputStreamWriter(OutputStream outputStream,
Encoding encoding,
EncodingErrorType errorType) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the stream, flushing it first.
|
void |
flush()
Flush the stream.
|
void |
write(char[] cbuf,
int off,
int len)
Write a portion of an array of characters.
|
public EncodedOutputStreamWriter(OutputStream outputStream, Encoding encoding, EncodingErrorType errorType)
public void write(char[] cbuf,
int off,
int len)
throws IOException
write in class Writercbuf - Array of charactersoff - Offset from which to start writing characterslen - Number of characters to writeIOException - If an I/O error occurspublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOException - If an I/O error occurspublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOException - If an I/O error occursCopyright © 2021 Hitachi Vantara. All rights reserved.