|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
java.io.PrintWriter
com.mindprod.hunkio.PrintWriterPlus
com.mindprod.hunkio.PrintWriterPortable
public final class PrintWriterPortable
Extension of PrintWriter/PrinterWriterPlus to deal properly with embedded \n character.
Prints lines with a configurable line separator character, even when it is embedded in the Strings to be printed, even those printed with print or println.
com.mindprod.common11.Localise#localise(String)
,
PrintWriterPlus
Field Summary |
---|
Fields inherited from class com.mindprod.hunkio.PrintWriterPlus |
---|
lineSeparator |
Fields inherited from class java.io.PrintWriter |
---|
out |
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
PrintWriterPortable(java.io.OutputStream out)
Constructor just like PrintWriter. |
|
PrintWriterPortable(java.io.OutputStream out,
boolean autoFlush)
Constructor just like PrintWriter. |
|
PrintWriterPortable(java.io.Writer out)
Constructor just like PrintWriter. |
|
PrintWriterPortable(java.io.Writer out,
boolean autoFlush)
Constructor just like PrintWriter. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Debugging test harness for PrintWriterPlus |
void |
print(char c)
like PrintWriter.print, but emits platform dependent line separator if c is a \n Print a character. |
void |
println(char c)
Like PrintWriter.println, but emits two line separators if c is a \n. |
void |
println(java.lang.String s)
like PrintWriter.println, but converts embedded \n to platform-specific line terminators Print a String and then terminate the line. |
Methods inherited from class com.mindprod.hunkio.PrintWriterPlus |
---|
emit, emit, emitln, emitln, setLineSeparator |
Methods inherited from class java.io.PrintWriter |
---|
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, 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 PrintWriterPortable(java.io.OutputStream out)
out
- An output streamOutputStreamWriter.OutputStreamWriter(java.io.OutputStream)
public PrintWriterPortable(java.io.Writer out)
out
- A character-output streampublic PrintWriterPortable(java.io.OutputStream out, boolean autoFlush)
out
- An output streamautoFlush
- A boolean; if true, the println() methods will flush the output bufferOutputStreamWriter.OutputStreamWriter(java.io.OutputStream)
public PrintWriterPortable(java.io.Writer out, boolean autoFlush)
out
- A character-output streamautoFlush
- A boolean; if true, the println() methods will flush the output bufferMethod Detail |
---|
public void print(char c)
print
in class java.io.PrintWriter
c
- The char
to be printedpublic void println(char c)
println
in class java.io.PrintWriter
c
- the char
value to be printedpublic void println(java.lang.String s)
println
in class java.io.PrintWriter
s
- the String
value to be printedpublic static void main(java.lang.String[] args)
args
- not used
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |