Lists Home |
Date Index |
- From: David Megginson <email@example.com>
- To: xml-dev Mailing List <firstname.lastname@example.org>
- Date: Mon, 13 Apr 1998 10:16:16 -0400
Tyler Baker writes:
> > At the bottom level, a characterStream interface is a good idea.
> > Having constructors for these that take an asciiByteStream, an
> > iso8859ByteStream and (I guess) a UTF8InputStream and produce
> > seems awfully convenient. -Tim
> This seems like a pretty reasonable idea. This would also allow
> parser writers to provide their own byte to character converters
> which may in fact be more efficient than the
> sun.io.ByteToCharConverter and sun.io.CharToByteConverter classes
> which do all of this stuff now in the JDK.
Just a quick note: using java.io.Reader would not require people to
use Sun's character converters, unless the implementor chose to use
java.io.InputStreamReader or something similar. You could always
subclass Reader to use your own character converters anyway.
That said, I'm happy to be persuaded to use SAXCharacterStream (or
SAXUTF16Stream) and SAXByteStream -- they'd make life much easier for
CORBA types. The Java people will complain quite a bit that I'm not
using Reader and InputStream, but I can prepare a friendly canned
reply for them.
All the best,
David Megginson email@example.com
Microstar Software Ltd. firstname.lastname@example.org
xml-dev: A list for W3C XML Developers. To post, mailto:email@example.com
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:firstname.lastname@example.org the following message;
To subscribe to the digests, mailto:email@example.com the following message;
List coordinator, Henry Rzepa (mailto:firstname.lastname@example.org)