public final class WriterOutputStream extends OutputStream
| Constructor and Description |
|---|
WriterOutputStream(Writer writer)
Construct a new instance.
|
WriterOutputStream(Writer writer,
Charset charset)
Construct a new instance.
|
WriterOutputStream(Writer writer,
CharsetDecoder decoder)
Construct a new instance.
|
WriterOutputStream(Writer writer,
CharsetDecoder decoder,
int bufferSize)
Construct a new instance.
|
WriterOutputStream(Writer writer,
String charsetName)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
String |
toString()
Get the string representation of this object.
|
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
writepublic WriterOutputStream(Writer writer)
writer - the writer to decode intopublic WriterOutputStream(Writer writer, CharsetDecoder decoder)
writer - the writer to decode intodecoder - the charset decoder to usepublic WriterOutputStream(Writer writer, CharsetDecoder decoder, int bufferSize)
writer - the writer to decode intodecoder - the charset decoder to usebufferSize - the buffer size to usepublic WriterOutputStream(Writer writer, Charset charset)
writer - the writer to decode intocharset - the character set to usepublic WriterOutputStream(Writer writer, String charsetName) throws UnsupportedEncodingException
writer - the writer to decode intocharsetName - the character set name to useUnsupportedEncodingException - if the character set name is unknownpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.