PrintWriter Members

PrintWriter Members

Class Overview | This Package | All Packages

Constructors
Name Description
PrintWriter(OutputStream) Create a new PrintWriter, without automatic line flushing, from an existing OutputStream.
PrintWriter(OutputStream, boolean) Create a new PrintWriter from an existing OutputStream.
PrintWriter(Writer) Create a new PrintWriter, without automatic line flushing.
PrintWriter(Writer, boolean) Create a new PrintWriter.

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.
print(char) Print a character.
print(char[]) Print an array of chracters.
print(double) Print a double.
print(float) Print a float.
print(int) Print an integer.
print(long) Print a long.
print(Object) Print an object.
print(String) Print a String.
println() Finish the line.
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(char[]) Write an array of characters.
write(char[], int, int) Write a portion of an array of characters.
write(int) Write a single character.
write(String) Write a string.
write(String, int, int) Write a portion of a string.