java.io.PrintWriter that re-throws the instances of
java.io.IOException thrown by the underlying implementation of
java.io.Writer as RunimeIOException instances.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private String | lineSeparator
Line separator string. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | UncheckedPrintWriter(Writer
A character-output stream out, boolean A boolean; if true, the println() methods will flush
the output buffer autoFlush)Create a new PrintWriter. |
| public | UncheckedPrintWriter(OutputStream
An output stream out)Create a new PrintWriter, without automatic line flushing, from an existing OutputStream. |
| public | UncheckedPrintWriter(OutputStream
An output stream out, boolean A boolean; if true, the println() methods will flush
the output buffer autoFlush)Create a new PrintWriter from an existing OutputStream. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| private void | |
| private void | |
| public void | print(boolean
The b)boolean to be printedOverrides java. |
| public void | |
| public void | |
| public void | |
| public void | print(float
The f)float to be printedOverrides java. |
| public void | print(double
The d)double to be printedOverrides java. |
| public void | print(char[]
The array of chars to be printed s)Overrides java. |
| public void | |
| public void | |
| public void | println()
Overrides java. |
| public void | println(boolean
the x)boolean value to be printedOverrides java. |
| public void | println(char
the x)char value to be printedOverrides java. |
| public void | println(int
the x)int value to be printedOverrides java. |
| public void | println(long
the x)long value to be printedOverrides java. |
| public void | println(float
the x)float value to be printedOverrides java. |
| public void | println(double
the x)double value to be printedOverrides java. |
| public void | println(char[]
the array of x)char values to be printedOverrides java. |
| public void | println(String
the x)String value to be printedOverrides java. |
| public void | println(Object
the x)Object value to be printedOverrides java. |
| public void | write(int
int specifying a character to be written. c)Overrides java. |
| public void | write(char[]
Array of characters buf, int Offset from which to start writing characters off, int Number of characters to write len)Overrides java. |
| public void | write(char[]
Array of characters to be written buf)Overrides java. |
| public void | write(String
A String s, int Offset from which to start writing characters off, int Number of characters to write len)Overrides java. |
| public void |
| autoFlush | back to summary |
|---|---|
| private boolean autoFlush | |
| lineSeparator | back to summary |
|---|---|
| private String lineSeparator Line separator string. This is the value of the line.separator property at the moment that the stream was created. | |
| UncheckedPrintWriter | back to summary |
|---|---|
| public UncheckedPrintWriter(Writer out) | |
| UncheckedPrintWriter | back to summary |
|---|---|
| public UncheckedPrintWriter(Writer out, boolean autoFlush) Create a new PrintWriter.
| |
| UncheckedPrintWriter | back to summary |
|---|---|
| public UncheckedPrintWriter(OutputStream out) Create a new PrintWriter, without automatic line flushing, from an existing OutputStream. This convenience constructor creates the necessary intermediate OutputStreamWriter, which will convert characters into bytes using the default character encoding.
| |
| UncheckedPrintWriter | back to summary |
|---|---|
| public UncheckedPrintWriter(OutputStream out, boolean autoFlush) Create a new PrintWriter from an existing OutputStream. This convenience constructor creates the necessary intermediate OutputStreamWriter, which will convert characters into bytes using the default character encoding.
| |
| close | back to summary |
|---|---|
| public void close() Overrides java. Implements java. Close the stream. | |
| flush | back to summary |
|---|---|
| public void flush() Overrides java. Implements java. Flush the stream. | |
| isOpen | back to summary |
|---|---|
| private void isOpen() throws IOException Check to make sure that the stream has not been closed | |
| newLine | back to summary |
|---|---|
| private void newLine() Hides java. | |
| back to summary | |
|---|---|
| public void print(boolean b) Overrides java. Print a boolean value. The string produced by
| |
| back to summary | |
|---|---|
| public void print(char c) Overrides java. Print a character. The character is translated into one or more bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the
| |
| back to summary | |
|---|---|
| public void print(int i) Overrides java. Print an integer. The string produced by
| |
| back to summary | |
|---|---|
| public void print(long l) Overrides java. Print a long integer. The string produced by
| |
| back to summary | |
|---|---|
| public void print(float f) Overrides java. Print a floating-point number. The string produced by
| |
| back to summary | |
|---|---|
| public void print(double d) Overrides java. Print a double-precision floating-point number. The string produced by
| |
| back to summary | |
|---|---|
| public void print(char[] s) Overrides java. Print an array of characters. The characters are converted into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the
| |
| back to summary | |
|---|---|
| public void print(String s) Overrides java. Print a string. If the argument is
| |
| back to summary | |
|---|---|
| public void print(Object obj) Overrides java. Print an object. The string produced by the
| |
| println | back to summary |
|---|---|
| public void println() Overrides java. Terminate 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. Print a boolean value and then terminate the line. This method behaves
as though it invokes
| |
| println | back to summary |
|---|---|
| public void println(char x) Overrides java. Print a character and then terminate the line. This method behaves as
though it invokes
| |
| println | back to summary |
|---|---|
| public void println(int x) Overrides java. Print an integer and then terminate the line. This method behaves as
though it invokes
| |
| println | back to summary |
|---|---|
| public void println(long x) Overrides java. Print a long integer and then terminate the line. This method behaves
as though it invokes
| |
| println | back to summary |
|---|---|
| public void println(float x) Overrides java. Print a floating-point number and then terminate the line. This method
behaves as though it invokes
| |
| println | back to summary |
|---|---|
| public void println(double x) Overrides java. Print a double-precision floating-point number and then terminate the
line. This method behaves as though it invokes
| |
| println | back to summary |
|---|---|
| public void println(char[] x) Overrides java. Print an array of characters and then terminate the line. This method
behaves as though it invokes
| |
| println | back to summary |
|---|---|
| public void println(String x) Overrides java. Print a String and then terminate the line. This method behaves as
though it invokes
| |
| println | back to summary |
|---|---|
| public void println(Object x) Overrides java. Print an Object and then terminate the line. This method behaves as
though it invokes
| |
| write | back to summary |
|---|---|
| public void write(int c) Overrides java. Write a single character.
| |
| write | back to summary |
|---|---|
| public void write(char[] buf, int off, int len) Overrides java. Write a portion of an array of characters.
| |
| write | back to summary |
|---|---|
| public void write(char[] buf) Overrides java. Write an array of characters. This method cannot be inherited from the Writer class because it must suppress I/O exceptions.
| |
| write | back to summary |
|---|---|
| public void write(String s, int off, int len) Overrides java. Write a portion of a string.
| |
| write | back to summary |
|---|---|
| public void write(String s) Overrides java. Write a string. This method cannot be inherited from the Writer class because it must suppress I/O exceptions.
| |