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

Variable Index

 o lineSeparator
The line separator string obtained by calling System.getProperty("line.separator").

Constructor Index

 o GPPrintStream(OutputStream)
Creates a GPPrintStream filter over an OutputStream.
 o GPPrintStream(OutputStream, boolean)
Creates a GPPrintStream filter over an OutputStream.

Method Index

 o write(int)
Detects '\n' and expands it to a full line separator string.
 o writeEol()
Writes the line separator string to the PrintStream.

Variables

 o lineSeparator
  protected String lineSeparator
The line separator string obtained by calling System.getProperty("line.separator").

Constructors

 o GPPrintStream
  public GPPrintStream(OutputStream out)
Creates a GPPrintStream filter over an OutputStream.
 o GPPrintStream
  public GPPrintStream(OutputStream out,
                       boolean autoflush)
Creates a GPPrintStream filter over an OutputStream.

Methods

 o writeEol
  public void writeEol()
Writes the line separator string to the PrintStream.
 o 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