Example usage for Java java.io PrintWriter fields, constructors, methods, implement or subclass
The text is from its open source code.
PrintWriter(Writer out, boolean autoFlush) Creates a new PrintWriter. | |
PrintWriter(OutputStream out, boolean autoFlush) Creates a new PrintWriter from an existing OutputStream. | |
PrintWriter(Charset charset, File file) | |
PrintWriter(String fileName, String csn) Creates a new PrintWriter, without automatic line flushing, with the specified file name and charset. | |
PrintWriter(String fileName, Charset charset) Creates a new PrintWriter, without automatic line flushing, with the specified file name and charset. | |
PrintWriter(File file, String csn) Creates a new PrintWriter, without automatic line flushing, with the specified file and charset. | |
PrintWriter(File file, Charset charset) Creates a new PrintWriter, without automatic line flushing, with the specified file and charset. | |
PrintWriter(Writer out) Creates a new PrintWriter, without automatic line flushing. | |
PrintWriter(OutputStream out) Creates a new PrintWriter, without automatic line flushing, from an existing OutputStream. | |
PrintWriter(String fileName) Creates a new PrintWriter, without automatic line flushing, with the specified file name. | |
PrintWriter(File file) Creates a new PrintWriter, without automatic line flushing, with the specified file. |
PrintWriter | append(CharSequence csq) Appends the specified character sequence to this writer. |
PrintWriter | append(char c) Appends the specified character to this writer. |
PrintWriter | append(CharSequence csq, int start, int end) Appends a subsequence of the specified character sequence to this writer. |
boolean | checkError() Flushes the stream if it's not closed and checks its error state. |
void | close() Closes the stream and releases any system resources associated with it. |
void | flush() Flushes the stream. |
PrintWriter | format(String format, Object... args) Writes a formatted string to this writer using the specified format string and arguments. |
PrintWriter | format(Locale l, String format, Object... args) Writes a formatted string to this writer using the specified format string and arguments. |
void | print(boolean b) Prints a boolean value. |
void | print(char c) Prints a character. |
void | print(int i) Prints an integer. |
void | print(long l) Prints a long integer. |
void | print(float f) Prints a floating-point number. |
void | print(double d) Prints a double-precision floating-point number. |
void | print(char s[]) Prints an array of characters. |
void | print(String s) Prints a string. |
void | print(Object obj) Prints an object. |
PrintWriter | printf(String format, Object... args) A convenience method to write a formatted string to this writer using the specified format string and arguments. |
PrintWriter | printf(Locale l, String format, Object... args) A convenience method to write a formatted string to this writer using the specified format string and arguments. |
void | println(boolean x) Prints a boolean value and then terminates the line. |
void | println(char x) Prints a character and then terminates the line. |
void | println(int x) Prints an integer and then terminates the line. |
void | println(long x) Prints a long integer and then terminates the line. |
void | println(float x) Prints a floating-point number and then terminates the line. |
void | println(double x) Prints a double-precision floating-point number and then terminates the line. |
void | println(char x[]) Prints an array of characters and then terminates the line. |
void | println(String x) Prints a String and then terminates the line. |
void | println(Object x) Prints an Object and then terminates the line. |
void | println() Terminates the current line by writing the line separator string. |
String | toString() Returns a string representation of the object. |
void | write(int c) Writes a single character. |
void | write(char buf[]) Writes an array of characters. |
void | write(String s) Writes a string. |
void | write(char buf[], int off, int len) Writes A Portion of an array of characters. |
void | write(String s, int off, int len) Writes a portion of a string. |