public class WriterOutputStream
extends java.io.OutputStream
| Modifier and Type | Field and Description |
|---|---|
protected java.io.Writer |
writerObj |
| Constructor and Description |
|---|
WriterOutputStream(java.io.Writer writerObj)
Creates a 'Writer' to 'OutputStream' converter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream.
|
void |
flush()
Flushes the stream.
|
void |
write(byte[] data)
Writes the given data array.
|
void |
write(byte[] data,
int start,
int len)
Writes the given section of the given array.
|
void |
write(int ch)
Writes a character.
|
public WriterOutputStream(java.io.Writer writerObj)
writerObj - the source 'Writer' object.public void write(int ch)
throws java.io.IOException
write in class java.io.OutputStreamch - characterjava.io.IOExceptionpublic void write(byte[] data)
throws java.io.IOException
write in class java.io.OutputStreamdata - data arrayjava.io.IOExceptionpublic void write(byte[] data,
int start,
int len)
throws java.io.IOException
write in class java.io.OutputStreamdata - data arraystart - start indexlen - lengthjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOException