|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
com.sun.javatest.util.WriterStream
public class WriterStream
Note: this class should be JDK 1.1 compatible
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
void |
close()
We override default implementation to write last characters, which could be lost in buffer otherwise. |
void |
flush()
Flush the stream. |
void |
write(int b)
OutputStream's implementation. |
Methods inherited from class java.io.OutputStream |
---|
write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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)Method Detail |
---|
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
- if an I/O error occurspublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.OutputStream
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
b
- next byte from OutputStream to write.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |