public class TextStream
extends java.io.FilterOutputStream
Constructor and Description |
---|
TextStream(java.io.OutputStream out)
Creates a new TextStream.
|
TextStream(java.io.OutputStream out,
boolean autoflush)
Creates a new TextStream.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 writtenpublic void print(java.lang.String s) throws java.io.IOException
s
- the String to be printedjava.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 printedjava.io.IOException
- if there is a problem writing to the streamCopyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.