|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Writer java.io.PrintWriter org.apache.james.util.InternetPrintWriter
public class InternetPrintWriter
Writes to a wrapped Writer class, ensuring that all line separators are '\r\n', regardless of platform.
Field Summary |
---|
Fields inherited from class java.io.PrintWriter |
---|
out |
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
InternetPrintWriter(java.io.OutputStream out)
Constructor that takes a stream to wrap. |
|
InternetPrintWriter(java.io.OutputStream out,
boolean autoFlush)
Constructor that takes a stream to wrap. |
|
InternetPrintWriter(java.io.Writer out)
Constructor that takes a writer to wrap. |
|
InternetPrintWriter(java.io.Writer out,
boolean autoFlush)
Constructor that takes a writer to wrap. |
Method Summary | |
---|---|
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(java.lang.Object x)
Print an Object followed by a line separator. |
void |
println(java.lang.String x)
Print a String followed by a line separator. |
Methods inherited from class java.io.PrintWriter |
---|
append, append, append, checkError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, setError, write, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InternetPrintWriter(java.io.Writer out)
out
- the wrapped Writerpublic InternetPrintWriter(java.io.Writer out, boolean autoFlush)
out
- the wrapped WriterautoFlush
- whether to flush after each print callpublic InternetPrintWriter(java.io.OutputStream out)
out
- the wrapped OutputStreampublic InternetPrintWriter(java.io.OutputStream out, boolean autoFlush)
out
- the wrapped OutputStreamautoFlush
- whether to flush after each print callMethod Detail |
---|
public void println()
println
in class java.io.PrintWriter
public void println(boolean x)
println
in class java.io.PrintWriter
x
- the boolean to printpublic void println(char x)
println
in class java.io.PrintWriter
x
- the char to printpublic void println(int x)
println
in class java.io.PrintWriter
x
- the int to printpublic void println(long x)
println
in class java.io.PrintWriter
x
- the long to printpublic void println(float x)
println
in class java.io.PrintWriter
x
- the float to printpublic void println(double x)
println
in class java.io.PrintWriter
x
- the double to printpublic void println(char[] x)
println
in class java.io.PrintWriter
x
- the character array to printpublic void println(java.lang.String x)
println
in class java.io.PrintWriter
x
- the String to printpublic void println(java.lang.Object x)
println
in class java.io.PrintWriter
x
- the Object to print
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |