public class WriterOutputStream extends OutputStream
| Constructor and Description |
|---|
WriterOutputStream(Writer writer)
Creates a new WriterOutputStream.
|
WriterOutputStream(Writer writer,
String encoding)
Creates a new WriterOutputStream.
|
public WriterOutputStream(Writer writer)
writer - the Writer to write topublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void write(byte[] buf,
int offset,
int length)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] buf)
throws IOException
write in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.