public class InternetPrintWriter extends PrintWriter
out
Constructor and Description |
---|
InternetPrintWriter(OutputStream out)
Constructor that takes a stream to wrap.
|
InternetPrintWriter(OutputStream out,
boolean autoFlush)
Constructor that takes a stream to wrap.
|
InternetPrintWriter(Writer out)
Constructor that takes a writer to wrap.
|
InternetPrintWriter(Writer out,
boolean autoFlush)
Constructor that takes a writer to wrap.
|
Modifier and Type | Method and Description |
---|---|
static InternetPrintWriter |
createForEncoding(OutputStream outputStream,
boolean autoFlush,
Charset charset)
Creates a new InternetPrintWriter for given charset encoding.
|
void |
println()
Print a line separator.
|
void |
println(boolean x)
Print a boolean followed by a line separator.
|
void |
println(char x)
Print a char followed by a line separator.
|
void |
println(char[] x)
Print a character array followed by a line separator.
|
void |
println(double x)
Print a double followed by a line separator.
|
void |
println(float x)
Print a float followed by a line separator.
|
void |
println(int x)
Print a int followed by a line separator.
|
void |
println(long x)
Print a long followed by a line separator.
|
void |
println(Object x)
Print an Object followed by a line separator.
|
void |
println(String x)
Print a String followed by a line separator.
|
public InternetPrintWriter(Writer out)
out
- the wrapped Writerpublic InternetPrintWriter(Writer out, boolean autoFlush)
out
- the wrapped WriterautoFlush
- whether to flush after each print callpublic InternetPrintWriter(OutputStream out)
out
- the wrapped OutputStreampublic InternetPrintWriter(OutputStream out, boolean autoFlush)
out
- the wrapped OutputStreamautoFlush
- whether to flush after each print callpublic static InternetPrintWriter createForEncoding(OutputStream outputStream, boolean autoFlush, Charset charset)
outputStream
- the wrapped output stream.charset
- the charset.public void println()
println
in class PrintWriter
public void println(boolean x)
println
in class PrintWriter
x
- the boolean to printpublic void println(char x)
println
in class PrintWriter
x
- the char to printpublic void println(int x)
println
in class PrintWriter
x
- the int to printpublic void println(long x)
println
in class PrintWriter
x
- the long to printpublic void println(float x)
println
in class PrintWriter
x
- the float to printpublic void println(double x)
println
in class PrintWriter
x
- the double to printpublic void println(char[] x)
println
in class PrintWriter
x
- the character array to printpublic void println(String x)
println
in class PrintWriter
x
- the String to printpublic void println(Object x)
println
in class PrintWriter
x
- the Object to printCopyright © 2006–2019 Icegreen Technologies. All rights reserved.