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.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 JBoss, a division of Red Hat, Inc.