xdoclet.template

Class PrettyPrintWriter


public class PrettyPrintWriter
extends PrintWriter

Extends the PrintWriter class by adding the possibility of emiting empty lines.
Version:
$Revision: 1.5 $
Authors:
Andreas "Mad" Schaefer (andreas.schaefer@madplane.com)
Ara Abrahamian (ara_e@email.com)
created
March 7, 2001

Field Summary

static String
LINE_SEPARATOR
Convenience variable for printing and matching line separators in a system portable manner.
static int
LINE_SEPARATOR_LEN

Constructor Summary

PrettyPrintWriter(OutputStream pOut)
Describe what the PrettyPrintWriter constructor does
PrettyPrintWriter(Writer pOut)
Describe what the PrettyPrintWriter constructor does
PrettyPrintWriter(Writer pOut, boolean pAutoFlush)
Describe what the PrettyPrintWriter constructor does

Method Summary

void
close()
Closes the output stream and writes the last line.
void
println()
void
write(String pText, int pOffset, int pLength)
Describe what the method does
void
write(int c)
void
write(pBuffer[] , int pOffset, int pLength)
Describe what the method does
protected void
writeLine()

Field Details

LINE_SEPARATOR

public static final String LINE_SEPARATOR
Convenience variable for printing and matching line separators in a system portable manner.

LINE_SEPARATOR_LEN

public static final int LINE_SEPARATOR_LEN

Constructor Details

PrettyPrintWriter

public PrettyPrintWriter(OutputStream pOut)
Describe what the PrettyPrintWriter constructor does
Parameters:
pOut - Describe what the parameter does

PrettyPrintWriter

public PrettyPrintWriter(Writer pOut)
Describe what the PrettyPrintWriter constructor does
Parameters:
pOut - Describe what the parameter does

PrettyPrintWriter

public PrettyPrintWriter(Writer pOut,
                         boolean pAutoFlush)
Describe what the PrettyPrintWriter constructor does
Parameters:
pOut - Describe what the parameter does
pAutoFlush - Describe what the parameter does

Method Details

close

public void close()
Closes the output stream and writes the last line.

println

public void println()

write

public void write(String pText,
                  int pOffset,
                  int pLength)
Describe what the method does
Parameters:
pText - Describe what the parameter does
pOffset - Describe what the parameter does
pLength - Describe what the parameter does

write

public void write(int c)

write

public void write(pBuffer[] ,
                  int pOffset,
                  int pLength)
Describe what the method does
Parameters:
pOffset - Describe what the parameter does
pLength - Describe what the parameter does

writeLine

protected void writeLine()