|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Printable
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 |
|---|
void print(PrintWriter writer)
writer - PrintWriter to print to.
void print(PrintWriter writer,
String prefix)
writer - PrintWriter to print to.prefix - Prefix to append to each line in the stream.void print(PrintStream stream)
stream - PrintStream to print to.
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 | |||||||||