|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
com.sun.javatest.util.TextStream
public class TextStream
This class implements an output stream that has additional methods for printing. It is similar to java.io.PrintStream except that it does not swallow exceptions.
Field Summary |
---|
Fields inherited from class java.io.FilterOutputStream |
---|
out |
Constructor Summary | |
---|---|
TextStream(java.io.OutputStream out)
Creates a new TextStream. |
|
TextStream(java.io.OutputStream out,
boolean autoflush)
Creates a new TextStream. |
Method Summary | |
---|---|
void |
print(java.lang.String s)
Prints a String. |
void |
println()
Prints a newline. |
void |
println(java.lang.String s)
Prints a string followed by a newline. |
Methods inherited from class java.io.FilterOutputStream |
---|
close, flush, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextStream(java.io.OutputStream out)
out
- the output streampublic TextStream(java.io.OutputStream out, boolean autoflush)
out
- the output streamautoflush
- set to true to flush the stream after each newline character
is writtenMethod Detail |
---|
public void print(java.lang.String s) throws java.io.IOException
s
- the String to be printed
java.io.IOException
- if there is a problem writing to the streampublic void println() throws java.io.IOException
java.io.IOException
- if there is a problem writing to the streampublic void println(java.lang.String s) throws java.io.IOException
s
- the String to be printed
java.io.IOException
- if there is a problem writing to the stream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |