EVALUATION
This is actually a very interesting point which should be considered now since
Appendable is an interface which can not be modified later.
Similar methods have proved useful in other classes such as
java.nio.channel.{Gather,Scatter}ingByteChannel.
The declaration would be:
Appendable append(CharSequence csq, int start, int end) throws IOException;
The implementation of this additional method is straight-forward in those Appendable classes which do not currently have the method. Concrete
implemenations would be required in Print{Stream,Writer}, Writer, and
CharBuffer. We would also need to provide implemenations in CharArrayWriter,
and StringWriter since methods in these classes do not throw IOExceptions.
-- iag@sfbay 2004-06-22
|