Class gpjpp.GPPrintStream
All Packages Class Hierarchy This Package Previous Next Index
Class gpjpp.GPPrintStream
java.lang.Object
|
+----java.io.OutputStream
|
+----java.io.FilterOutputStream
|
+----java.io.PrintStream
|
+----gpjpp.GPPrintStream
- public class GPPrintStream
- extends PrintStream
Extends the standard PrintStream class to output a
platform-specific line separator. This is not needed for JDK 1.1,
which outputs the System property line.separator automatically
at the end of each line. GPPrintStream does not interfere with
the operation of PrintStream under JDK 1.1 (which deprecates
PrintStream and completely changes its implementation).
- Version:
- 1.0
-
lineSeparator
- The line separator string obtained by calling
System.getProperty("line.separator").
-
GPPrintStream(OutputStream)
- Creates a GPPrintStream filter over an OutputStream.
-
GPPrintStream(OutputStream, boolean)
- Creates a GPPrintStream filter over an OutputStream.
-
write(int)
- Detects '\n' and expands it to a full line separator string.
-
writeEol()
- Writes the line separator string to the PrintStream.
lineSeparator
protected String lineSeparator
- The line separator string obtained by calling
System.getProperty("line.separator").
GPPrintStream
public GPPrintStream(OutputStream out)
- Creates a GPPrintStream filter over an OutputStream.
GPPrintStream
public GPPrintStream(OutputStream out,
boolean autoflush)
- Creates a GPPrintStream filter over an OutputStream.
writeEol
public void writeEol()
- Writes the line separator string to the PrintStream.
write
public void write(int b)
- Detects '\n' and expands it to a full line separator string.
All other characters are passed on to the superclass.
- Overrides:
- write in class PrintStream
All Packages Class Hierarchy This Package Previous Next Index