OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   SAX: Character Streams

[ Lists Home | Date Index | Thread Index ]
  • From: David Megginson <ak117@freenet.carleton.ca>
  • To: xml-dev Mailing List <xml-dev@ic.ac.uk>
  • 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                 ak117@freenet.carleton.ca
Microstar Software Ltd.         dmeggins@microstar.com

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS