| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PrintStream | append(CharSequence
The character sequence to append. If csq)csq is
null, then the four characters "null" are
appended to this output stream.Overrides java. Implements java. Appends the specified character sequence to this output stream. |
| public PrintStream | append(CharSequence
The character sequence from which a subsequence will be
appended. If csq, int csq is null, then characters
will be appended as if csq contained the four
characters "null".The index of the first character in the subsequence start, int The index of the character following the last character in the
subsequence end)Overrides java. Implements java. Appends a subsequence of the specified character sequence to this output stream. |
| public PrintStream | append(char
The 16-bit character to append c)Overrides java. Implements java. Appends the specified character to this output stream. |
| public PrintStream | format(String
A format string as described in Format string syntax format, Object... Arguments referenced by the format specifiers in the format
string. If there are more arguments than format specifiers, the
extra arguments are ignored. The number of arguments is
variable and may be zero. The maximum number of arguments is
limited by the maximum dimension of a Java array as defined by
The Java Virtual Machine Specification.
The behaviour on a
args)null argument depends on the conversion.Overrides java. Writes a formatted string to this output stream using the specified format string and arguments. |
| public PrintStream | format(Locale l, String
A format string as described in Format string syntax format, Object... Arguments referenced by the format specifiers in the format
string. If there are more arguments than format specifiers, the
extra arguments are ignored. The number of arguments is
variable and may be zero. The maximum number of arguments is
limited by the maximum dimension of a Java array as defined by
The Java Virtual Machine Specification.
The behaviour on a
args)null argument depends on the conversion.Overrides java. Writes a formatted string to this output stream using the specified format string and arguments. |
| public void | print(boolean
The b)boolean to be printedOverrides java. Prints a boolean value. |
| public void | |
| public void | |
| public void | |
| public void | print(float
The f)float to be printedOverrides java. Prints a floating-point number. |
| public void | print(double
The d)double to be printedOverrides java. Prints a double-precision floating-point number. |
| public void | print(char[]
The array of chars to be printed s)Overrides java. Prints an array of characters. |
| public void | |
| public void | |
| public PrintStream | printf(String
A format string as described in Format string syntax format, Object... Arguments referenced by the format specifiers in the format
string. If there are more arguments than format specifiers, the
extra arguments are ignored. The number of arguments is
variable and may be zero. The maximum number of arguments is
limited by the maximum dimension of a Java array as defined by
The Java Virtual Machine Specification.
The behaviour on a
args)null argument depends on the conversion.Overrides java. A convenience method to write a formatted string to this output stream using the specified format string and arguments. |
| public PrintStream | printf(Locale l, String
A format string as described in Format string syntax format, Object... Arguments referenced by the format specifiers in the format
string. If there are more arguments than format specifiers, the
extra arguments are ignored. The number of arguments is
variable and may be zero. The maximum number of arguments is
limited by the maximum dimension of a Java array as defined by
The Java Virtual Machine Specification.
The behaviour on a
args)null argument depends on the conversion.Overrides java. A convenience method to write a formatted string to this output stream using the specified format string and arguments. |
| public void | println()
Overrides java. Terminates the current line by writing the line separator string. |
| public void | println(boolean
The x)boolean to be printedOverrides java. Prints a boolean and then terminates the line. |
| public void | println(char
The x)char to be printed.Overrides java. Prints a character and then terminates the line. |
| public void | println(int
The x)int to be printed.Overrides java. Prints an integer and then terminates the line. |
| public void | println(long
a The x)long to be printed.Overrides java. Prints a long and then terminates the line. |
| public void | println(float
The x)float to be printed.Overrides java. Prints a float and then terminates the line. |
| public void | println(double
The x)double to be printed.Overrides java. Prints a double and then terminates the line. |
| public void | println(char[]
an array of chars to print. x)Overrides java. Prints an array of characters and then terminates the line. |
| public void | println(String
The x)String to be printed.Overrides java. Prints a String and then terminates the line. |
| public void | println(Object
The x)Object to be printed.Overrides java. Prints an Object and then terminates the line. |
| public void | write(int
The byte to be written b)Overrides java. Writes the specified byte to this stream. |
| public void | write(byte[]
A byte array buf, int Offset from which to start taking bytes off, int Number of bytes to write len)Overrides java. Writes |
| NullPrintStream | back to summary |
|---|---|
| public NullPrintStream() | |
| append | back to summary |
|---|---|
| public PrintStream append(CharSequence csq) Overrides java. Implements java. Doc from java. Appends the specified character sequence to this output stream. An invocation of this method of the form out.print(csq.toString()) Depending on the specification of
| |
| append | back to summary |
|---|---|
| public PrintStream append(CharSequence csq, int start, int end) Overrides java. Implements java. Doc from java. Appends a subsequence of the specified character sequence to this output stream. An invocation of this method of the form
out.print(csq.subSequence(start, end).toString())
| |
| append | back to summary |
|---|---|
| public PrintStream append(char c) Overrides java. Implements java. Doc from java. Appends the specified character to this output stream. An invocation of this method of the form out.print(c)
| |
| format | back to summary |
|---|---|
| public PrintStream format(String format, Object... args) Overrides java. Doc from java. Writes a formatted string to this output stream using the specified format string and arguments. The locale always used is the one returned by
| |
| format | back to summary |
|---|---|
| public PrintStream format(Locale l, String format, Object... args) Overrides java. Doc from java. Writes a formatted string to this output stream using the specified format string and arguments.
| |
| back to summary | |
|---|---|
| public void print(boolean b) Overrides java. Doc from java. Prints a boolean value. The string produced by
| |
| back to summary | |
|---|---|
| public void print(char c) Overrides java. Doc from java. Prints a character. The character is translated into one or more bytes
according to the character encoding given to the constructor, or the
default charset if none specified. These bytes
are written in exactly the manner of the
| |
| back to summary | |
|---|---|
| public void print(int i) Overrides java. Doc from java. Prints an integer. The string produced by
| |
| back to summary | |
|---|---|
| public void print(long l) Overrides java. Doc from java. Prints a long integer. The string produced by
| |
| back to summary | |
|---|---|
| public void print(float f) Overrides java. Doc from java. Prints a floating-point number. The string produced by
| |
| back to summary | |
|---|---|
| public void print(double d) Overrides java. Doc from java. Prints a double-precision floating-point number. The string produced by
| |
| back to summary | |
|---|---|
| public void print(char[] s) Overrides java. Doc from java. Prints an array of characters. The characters are converted into bytes
according to the character encoding given to the constructor, or the
default charset if none specified. These bytes
are written in exactly the manner of the
| |
| back to summary | |
|---|---|
| public void print(String s) Overrides java. Doc from java. Prints a string. If the argument is | |
| back to summary | |
|---|---|
| public void print(Object obj) Overrides java. Doc from java. Prints an object. The string produced by the | |
| printf | back to summary |
|---|---|
| public PrintStream printf(String format, Object... args) Overrides java. Doc from java. A convenience method to write a formatted string to this output stream using the specified format string and arguments. An invocation of this method of the form
out.format(format, args)
| |
| printf | back to summary |
|---|---|
| public PrintStream printf(Locale l, String format, Object... args) Overrides java. Doc from java. A convenience method to write a formatted string to this output stream using the specified format string and arguments. An invocation of this method of the form
out.format(l, format, args)
| |
| println | back to summary |
|---|---|
| public void println() Overrides java. Doc from java. Terminates the current line by writing the line separator string. The
line separator string is defined by the system property
| |
| println | back to summary |
|---|---|
| public void println(boolean x) Overrides java. Doc from java. Prints a boolean and then terminates the line. This method behaves as
though it invokes
| |
| println | back to summary |
|---|---|
| public void println(char x) Overrides java. Doc from java. Prints a character and then terminates the line. This method behaves as
though it invokes
| |
| println | back to summary |
|---|---|
| public void println(int x) Overrides java. Doc from java. Prints an integer and then terminates the line. This method behaves as
though it invokes
| |
| println | back to summary |
|---|---|
| public void println(long x) Overrides java. Doc from java. Prints a long and then terminates the line. This method behaves as
though it invokes
| |
| println | back to summary |
|---|---|
| public void println(float x) Overrides java. Doc from java. Prints a float and then terminates the line. This method behaves as
though it invokes
| |
| println | back to summary |
|---|---|
| public void println(double x) Overrides java. Doc from java. Prints a double and then terminates the line. This method behaves as
though it invokes
| |
| println | back to summary |
|---|---|
| public void println(char[] x) Overrides java. Doc from java. Prints an array of characters and then terminates the line. This method
behaves as though it invokes
| |
| println | back to summary |
|---|---|
| public void println(String x) Overrides java. Doc from java. Prints a String and then terminates the line. This method behaves as
though it invokes | |
| println | back to summary |
|---|---|
| public void println(Object x) Overrides java. Doc from java. Prints an Object and then terminates the line. This method calls
at first String.valueOf(x) to get the printed object's string value,
then behaves as
though it invokes | |
| write | back to summary |
|---|---|
| public void write(int b) Overrides java. Doc from java. Writes the specified byte to this stream. If the byte is a newline and
automatic flushing is enabled then the Note that the byte is written as given; to write a character that
will be translated according to the default charset, use the
| |
| write | back to summary |
|---|---|
| public void write(byte[] buf, int off, int len) Overrides java. Doc from java. Writes Note that the bytes will be written as given; to write characters
that will be translated according to the default charset, use the
| |