Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] NFC serialization

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Bradley S. Huffman" <hip AT cs.okstate.edu>
  • To: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] NFC serialization
  • Date: Wed, 22 Oct 2003 14:46:00 -0500

True, you'd have to subclass FilterWriter instead, but since XOM's Serializer
only outputs to a OutputStream it wouldn't be applicable in this case.
Never mind.

Brad

Elliotte Rusty Harold writes:

> At 12:30 PM -0500 10/22/03, Bradley S. Huffman wrote:
>
> >What about writing four subclasses of FilterOutputStream
> >(NFCFilterOutputStream,
> >NFKCFilterOutputStream, NFDFilterOutputStream, NFDKFilterOutputStream)?
> >Then
> >setUnicodeNormalization(true) can automagically wrap a
> >NFCFilterOutputStream
> >around the output stream provided to the serializer. Anyone wanting
> >somethi
> ng
> >other than NFC can wrap the output stream by hand.
>
> I don't think that would work. It assumes the underlying stream is
> using a Unicode encoding, but it might well not be. It could be
> ISO-8859-1 or something else. How the filtering happened would depend
> ion the encoding. Even the difference between UTF-16 and UTF-8 could
> be a problem.




Archive powered by MHonArc 2.6.24.

Top of Page