public class WriterStream
extends java.io.OutputStream
| Constructor and Description |
|---|
WriterStream(java.io.Writer w)
Create a stream that writes to a writer.
|
WriterStream(java.io.Writer w,
java.lang.String charsetName)
Create a stream that writes to a writer.
|
public WriterStream(java.io.Writer w)
w - the writerpublic WriterStream(java.io.Writer w,
java.lang.String charsetName)
w - the writercharsetName - name of encoding to be used when decode byte stream
(instead of default one)public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException - if an I/O error occurspublic 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 write(int b)
throws java.io.IOException
write in class java.io.OutputStreamb - next byte from OutputStream to write.java.io.IOExceptionCopyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.