|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
java.io.PrintWriter
xdoclet.template.PrettyPrintWriter
Extends the PrintWriter class by adding the possibility of emiting empty lines.
Field Summary | |
static 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 |
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(char[] pBuffer,
int pOffset,
int pLength)
Describe what the method does |
void |
write(int c)
|
void |
write(String pText,
int pOffset,
int pLength)
Describe what the method does |
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 |
Field Detail |
public static final String LINE_SEPARATOR
public static final int LINE_SEPARATOR_LEN
Constructor Detail |
public PrettyPrintWriter(OutputStream pOut)
pOut
- Describe what the parameter doespublic PrettyPrintWriter(Writer pOut)
pOut
- Describe what the parameter doespublic PrettyPrintWriter(Writer pOut, boolean pAutoFlush)
pOut
- Describe what the parameter doespAutoFlush
- Describe what the parameter doesMethod Detail |
public void close()
public void write(char[] pBuffer, int pOffset, int pLength)
pBuffer
- Describe what the parameter doespOffset
- Describe what the parameter doespLength
- Describe what the parameter doespublic void write(int c)
public void write(String pText, int pOffset, int pLength)
pText
- Describe what the parameter doespOffset
- Describe what the parameter doespLength
- Describe what the parameter doespublic void println()
protected void writeLine()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |