For objects that allow to append their string representation to an Appendable we will add an interface StringWritable that declares a write(Appendable) method.
The AbstractStringWritable will implement toString() and write(Appendable) that shall delegate to an abstract protected doWrite method.
For objects that allow to append their string representation to an
Appendable
we will add an interfaceStringWritable
that declares awrite(Appendable)
method. TheAbstractStringWritable
will implementtoString()
andwrite(Appendable)
that shall delegate to an abstract protecteddoWrite
method.