xdoclet.template
Class PrettyPrintWriter
java.lang.Object
|
+--java.io.Writer
|
+--java.io.PrintWriter
|
+--xdoclet.template.PrettyPrintWriter
- public class PrettyPrintWriter
- extends java.io.PrintWriter
Extends the PrintWriter class by adding the possibility of emiting empty
lines.
- Version:
- $Revision: 1.2 $
- Author:
- Andreas "Mad" Schaefer (andreas.schaefer@madplane.com), Ara Abrahamian (ara_e@email.com)
Field Summary |
static java.lang.String |
LINE_SEPARATOR
Convenience variable for printing and matching line separators in a system
portable manner. |
static int |
LINE_SEPARATOR_LEN
|
Fields inherited from class java.io.PrintWriter |
out |
Fields inherited from class java.io.Writer |
lock |
Method Summary |
void |
close()
Closes the output stream and writes the last line. |
void |
println()
|
void |
write(char[] pBuffer,
int pOffset,
int pLength)
|
void |
write(int c)
|
void |
write(java.lang.String pText,
int pOffset,
int pLength)
|
protected void |
writeLine()
|
Methods inherited from class java.io.PrintWriter |
checkError, flush, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, setError, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LINE_SEPARATOR
public static final java.lang.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
PrettyPrintWriter
public PrettyPrintWriter(java.io.OutputStream pOut)
PrettyPrintWriter
public PrettyPrintWriter(java.io.Writer pOut)
PrettyPrintWriter
public PrettyPrintWriter(java.io.Writer pOut,
boolean pAutoFlush)
close
public void close()
- Closes the output stream and writes the last line.
- Overrides:
close
in class java.io.PrintWriter
write
public void write(char[] pBuffer,
int pOffset,
int pLength)
- Overrides:
write
in class java.io.PrintWriter
write
public void write(int c)
- Overrides:
write
in class java.io.PrintWriter
write
public void write(java.lang.String pText,
int pOffset,
int pLength)
- Overrides:
write
in class java.io.PrintWriter
println
public void println()
- Overrides:
println
in class java.io.PrintWriter
writeLine
protected void writeLine()