at.jku.risc.stout.nau.util
public abstract class Printable extends Object
toString()
will use this
representation too. This method is much more flexible than the plain
toString() approach and it uses much less system resources by
directly writing to the receiver.Constructor and Description |
---|
Printable() |
Modifier and Type | Method and Description |
---|---|
void |
printString(PrintStream toPrint)
Writes a string representation of this object into an arbitrary
PrintStream.
|
abstract void |
printString(Writer toPrint)
Writes a string representation of this object into an arbitrary
Writer.
|
String |
toString()
Use printString(Writer) if possible!
|
public void printString(PrintStream toPrint) throws IOException
IOException
public abstract void printString(Writer toPrint) throws IOException
IOException