public class WriterOutputStream
extends java.io.OutputStream
Writer in an OutputStream.
Instances of this class are not thread-safe.
NOTE: This class is probably not the right way of solving your problem,
however it might prove useful in JSPs etc.
If possible, it's always better to use the Writer's underlying
OutputStream, or wrap it's native backing.
| Modifier and Type | Field and Description |
|---|---|
protected com.twelvemonkeys.io.WriterOutputStream.Decoder |
decoder |
protected java.io.Writer |
writer |
| Constructor and Description |
|---|
WriterOutputStream(java.io.Writer pWriter) |
WriterOutputStream(java.io.Writer pWriter,
java.lang.String pCharset) |
protected java.io.Writer writer
protected final com.twelvemonkeys.io.WriterOutputStream.Decoder decoder
public WriterOutputStream(java.io.Writer pWriter,
java.lang.String pCharset)
public WriterOutputStream(java.io.Writer pWriter)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose 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 final void write(byte[] pBytes)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic final void write(byte[] pBytes,
int pOffset,
int pLength)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic final void write(int pByte)
write in class java.io.OutputStreampublic static void main(java.lang.String[] pArgs)
throws java.io.IOException
java.io.IOExceptionCopyright © 2018. All Rights Reserved.