PrintStream Members

PrintStream Members

Class Overview | This Package | All Packages

Constructors
Name Description
PrintStream(OutputStream) Create a new print stream. Deprecated.
PrintStream(OutputStream, boolean) Create a new PrintStream. Deprecated.

Methods
Name Description
checkError() Flush the stream and check its error state.
close() Close the stream.
flush() Flush the stream.
print(boolean) Print a boolean value.
print(char) Print a character.
print(char[]) Print an array of characters.
print(double) Print a double-precision floating-point number.
print(float) Print a floating-point number.
print(int) Print an integer.
print(long) Print a long integer.
print(Object) Print an object.
print(String) Print a string.
println() Finish the current line by writing a line separator.
println(boolean) Print a boolean, and then finish the line.
println(char) Print a character, and then finish the line.
println(char[]) Print an array of characters, and then finish the line.
println(double) Print a double, and then finish the line.
println(float) Print a float, and then finish the line.
println(int) Print an integer, and then finish the line.
println(long) Print a long, and then finish the line.
println(Object) Print an Object, and then finish the line.
println(String) Print a String, and then finish the line.
setError() Indicate that an error has occurred.
write(byte[], int, int) Write a portion of a byte array, blocking if necessary.
write(int) Write a byte, blocking if necessary.