PrintStream (Java Platform SE 8 ) (original) (raw)
Modifier and Type
Method
Description
[PrintStream](../../java/io/PrintStream.html "class in java.io")
[append](../../java/io/PrintStream.html#append-char-)(char c)
Appends the specified character to this output stream.
[PrintStream](../../java/io/PrintStream.html "class in java.io")
[append](../../java/io/PrintStream.html#append-java.lang.CharSequence-)([CharSequence](../../java/lang/CharSequence.html "interface in java.lang") csq)
Appends the specified character sequence to this output stream.
[PrintStream](../../java/io/PrintStream.html "class in java.io")
[append](../../java/io/PrintStream.html#append-java.lang.CharSequence-int-int-)([CharSequence](../../java/lang/CharSequence.html "interface in java.lang") csq, int start, int end)
Appends a subsequence of the specified character sequence to this output stream.
boolean
[checkError](../../java/io/PrintStream.html#checkError--)()
Flushes the stream and checks its error state.
protected void
[clearError](../../java/io/PrintStream.html#clearError--)()
Clears the internal error state of this stream.
void
[close](../../java/io/PrintStream.html#close--)()
Closes the stream.
void
[flush](../../java/io/PrintStream.html#flush--)()
Flushes the stream.
[PrintStream](../../java/io/PrintStream.html "class in java.io")
[format](../../java/io/PrintStream.html#format-java.util.Locale-java.lang.String-java.lang.Object...-)([Locale](../../java/util/Locale.html "class in java.util") l,[String](../../java/lang/String.html "class in java.lang") format,[Object](../../java/lang/Object.html "class in java.lang")... args)
Writes a formatted string to this output stream using the specified format string and arguments.
[PrintStream](../../java/io/PrintStream.html "class in java.io")
[format](../../java/io/PrintStream.html#format-java.lang.String-java.lang.Object...-)([String](../../java/lang/String.html "class in java.lang") format,[Object](../../java/lang/Object.html "class in java.lang")... args)
Writes a formatted string to this output stream using the specified format string and arguments.
void
[print](../../java/io/PrintStream.html#print-boolean-)(boolean b)
Prints a boolean value.
void
[print](../../java/io/PrintStream.html#print-char-)(char c)
Prints a character.
void
[print](../../java/io/PrintStream.html#print-char:A-)(char[] s)
Prints an array of characters.
void
[print](../../java/io/PrintStream.html#print-double-)(double d)
Prints a double-precision floating-point number.
void
[print](../../java/io/PrintStream.html#print-float-)(float f)
Prints a floating-point number.
void
[print](../../java/io/PrintStream.html#print-int-)(int i)
Prints an integer.
void
[print](../../java/io/PrintStream.html#print-long-)(long l)
Prints a long integer.
void
[print](../../java/io/PrintStream.html#print-java.lang.Object-)([Object](../../java/lang/Object.html "class in java.lang") obj)
Prints an object.
void
[print](../../java/io/PrintStream.html#print-java.lang.String-)([String](../../java/lang/String.html "class in java.lang") s)
Prints a string.
[PrintStream](../../java/io/PrintStream.html "class in java.io")
[printf](../../java/io/PrintStream.html#printf-java.util.Locale-java.lang.String-java.lang.Object...-)([Locale](../../java/util/Locale.html "class in java.util") l,[String](../../java/lang/String.html "class in java.lang") format,[Object](../../java/lang/Object.html "class in java.lang")... args)
A convenience method to write a formatted string to this output stream using the specified format string and arguments.
[PrintStream](../../java/io/PrintStream.html "class in java.io")
[printf](../../java/io/PrintStream.html#printf-java.lang.String-java.lang.Object...-)([String](../../java/lang/String.html "class in java.lang") format,[Object](../../java/lang/Object.html "class in java.lang")... args)
A convenience method to write a formatted string to this output stream using the specified format string and arguments.
void
[println](../../java/io/PrintStream.html#println--)()
Terminates the current line by writing the line separator string.
void
[println](../../java/io/PrintStream.html#println-boolean-)(boolean x)
Prints a boolean and then terminate the line.
void
[println](../../java/io/PrintStream.html#println-char-)(char x)
Prints a character and then terminate the line.
void
[println](../../java/io/PrintStream.html#println-char:A-)(char[] x)
Prints an array of characters and then terminate the line.
void
[println](../../java/io/PrintStream.html#println-double-)(double x)
Prints a double and then terminate the line.
void
[println](../../java/io/PrintStream.html#println-float-)(float x)
Prints a float and then terminate the line.
void
[println](../../java/io/PrintStream.html#println-int-)(int x)
Prints an integer and then terminate the line.
void
[println](../../java/io/PrintStream.html#println-long-)(long x)
Prints a long and then terminate the line.
void
[println](../../java/io/PrintStream.html#println-java.lang.Object-)([Object](../../java/lang/Object.html "class in java.lang") x)
Prints an Object and then terminate the line.
void
[println](../../java/io/PrintStream.html#println-java.lang.String-)([String](../../java/lang/String.html "class in java.lang") x)
Prints a String and then terminate the line.
protected void
[setError](../../java/io/PrintStream.html#setError--)()
Sets the error state of the stream to true
.
void
[write](../../java/io/PrintStream.html#write-byte:A-int-int-)(byte[] buf, int off, int len)
Writes len
bytes from the specified byte array starting at offset off
to this stream.
void
[write](../../java/io/PrintStream.html#write-int-)(int b)
Writes the specified byte to this stream.