
public final class WriterOutputStream
extends java.io.OutputStream
| Constructor and Description |
|---|
WriterOutputStream(java.io.Writer writer)
Construct a new instance.
|
WriterOutputStream(java.io.Writer writer,
java.nio.charset.Charset charset)
Construct a new instance.
|
WriterOutputStream(java.io.Writer writer,
java.nio.charset.CharsetDecoder decoder)
Construct a new instance.
|
WriterOutputStream(java.io.Writer writer,
java.nio.charset.CharsetDecoder decoder,
int bufferSize)
Construct a new instance.
|
WriterOutputStream(java.io.Writer writer,
java.lang.String charsetName)
Construct a new instance.
|
public WriterOutputStream(java.io.Writer writer)
writer - the writer to decode intopublic WriterOutputStream(java.io.Writer writer,
java.nio.charset.CharsetDecoder decoder)
writer - the writer to decode intodecoder - the charset decoder to usepublic WriterOutputStream(java.io.Writer writer,
java.nio.charset.CharsetDecoder decoder,
int bufferSize)
writer - the writer to decode intodecoder - the charset decoder to usebufferSize - the buffer size to usepublic WriterOutputStream(java.io.Writer writer,
java.nio.charset.Charset charset)
writer - the writer to decode intocharset - the character set to usepublic WriterOutputStream(java.io.Writer writer,
java.lang.String charsetName)
throws java.io.UnsupportedEncodingException
writer - the writer to decode intocharsetName - the character set name to usejava.io.UnsupportedEncodingException - if the character set name is unknownpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010 JBoss, a division of Red Hat, Inc.