
public class WriterOutputStream extends OutputStream
| Constructor and Description |
|---|
WriterOutputStream(Writer writer)
Construct a new instance using the default charset.
|
WriterOutputStream(Writer writer,
Charset charset)
Construct a new instance using the given charset.
|
WriterOutputStream(Writer writer,
CharsetDecoder decoder)
Construct a new instance using the given charset decoder.
|
WriterOutputStream(Writer writer,
String charsetName)
Construct a new instance using the named charset.
|
public WriterOutputStream(Writer writer)
writer - the writer to write topublic WriterOutputStream(Writer writer, String charsetName)
writer - the writer to write tocharsetName - the charset namepublic WriterOutputStream(Writer writer, Charset charset)
writer - the writer to write tocharset - the charsetpublic WriterOutputStream(Writer writer, CharsetDecoder decoder)
writer - the writer to write todecoder - the charset decoderpublic 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 © 2013 JBoss, a division of Red Hat, Inc.