|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A simple interface to allow an object to print itself to a
PrintWriter
or PrintStream
.
Method Summary | |
void |
print(PrintStream stream)
Print to a PrintStream. |
void |
print(PrintStream stream,
String prefix)
Print to a PrintStream. |
void |
print(PrintWriter writer)
Print to a PrintWriter. |
void |
print(PrintWriter writer,
String prefix)
Print to a PrintWriter. |
Method Detail |
public void print(PrintWriter writer)
writer
- PrintWriter to print to.public void print(PrintWriter writer, String prefix)
writer
- PrintWriter to print to.prefix
- Prefix to append to each line in the stream.public void print(PrintStream stream)
stream
- PrintStream to print to.public void print(PrintStream stream, String prefix)
stream
- PrintStream to print to.prefix
- Prefix to append to each line in the stream.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |