|
XNIO API 3.0.7.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
org.xnio.streams.WriterOutputStream
public final class WriterOutputStream
An output stream which decodes bytes into a character writer.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.io.OutputStream |
|---|
write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WriterOutputStream(Writer writer)
writer - the writer to decode into
public WriterOutputStream(Writer writer,
CharsetDecoder decoder)
writer - the writer to decode intodecoder - the charset decoder to use
public WriterOutputStream(Writer writer,
CharsetDecoder decoder,
int bufferSize)
writer - the writer to decode intodecoder - the charset decoder to usebufferSize - the buffer size to use
public WriterOutputStream(Writer writer,
Charset charset)
writer - the writer to decode intocharset - the character set to use
public WriterOutputStream(Writer writer,
String charsetName)
throws UnsupportedEncodingException
writer - the writer to decode intocharsetName - the character set name to use
UnsupportedEncodingException - if the character set name is unknown| Method Detail |
|---|
public void write(int b)
throws IOException
write in class OutputStreamIOException
public void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOException
public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in class OutputStreamIOExceptionpublic String toString()
toString in class Object
|
XNIO API 3.0.7.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||