SAX: Character Streams

David Megginson ak117 at
Mon Apr 13 16:18:04 BST 1998

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
 > and classes
 > which do all of this stuff now in the JDK.  

Just a quick note: using would not require people to
use Sun's character converters, unless the implementor chose to use 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                 ak117 at
Microstar Software Ltd.         dmeggins at

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as:
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list