xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] Serialize selected elements to a Writer.
- From: "Michael Kay" <mike AT saxonica.com>
- To: "'Ed Davies'" <edavies AT nildram.co.uk>, <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] Serialize selected elements to a Writer.
- Date: Mon, 16 Oct 2006 20:27:25 +0100
You can of course create an OutputStreamWriter with a nominated
CharsetEncoder which in effect provides a callback for handling
non-encodable characters; and if you are asked to write to an
OutputStreamWriter, then you can interrogate it to find out what encoding it
is using. The behaviour you describe is only a default.
Michael Kay
http://www.saxonica.com/
> That Writer's behaviour with unsupported characters is
> undefined and that OutputStreamWriter seems to write
> substitution sequences for them are both flaws in the design
> of java.io, in my humble opinion. I think it would be safer
> if the defined behaviour was to throw an exception, at least
> by default, to avoid silent data loss.
>
> Ed.
>
> _______________________________________________
> XOM-interest mailing list
> XOM-interest AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/xom-interest
-
[XOM-interest] Serialize selected elements to a Writer.,
David Bullock, 10/13/2006
-
Re: [XOM-interest] Serialize selected elements to a Writer.,
Elliotte Harold, 10/13/2006
-
Re: [XOM-interest] Serialize selected elements to a Writer.,
John Cowan, 10/16/2006
-
Re: [XOM-interest] Serialize selected elements to a Writer.,
David Bullock, 10/13/2006
-
Re: [XOM-interest] Serialize selected elements to a Writer.,
Elliotte Harold, 10/13/2006
- Re: [XOM-interest] Serialize selected elements to a Writer., Michael Kay, 10/14/2006
-
Re: [XOM-interest] Serialize selected elements to a Writer.,
David Bullock, 10/16/2006
-
Re: [XOM-interest] Serialize selected elements to a Writer.,
Ed Davies, 10/16/2006
- Re: [XOM-interest] Serialize selected elements to a Writer., Michael Kay, 10/16/2006
- Re: [XOM-interest] Serialize selected elements to a Writer., Tatu Saloranta, 10/17/2006
-
Re: [XOM-interest] Serialize selected elements to a Writer.,
Ed Davies, 10/16/2006
-
Re: [XOM-interest] Serialize selected elements to a Writer.,
Elliotte Harold, 10/13/2006
-
Re: [XOM-interest] Serialize selected elements to a Writer.,
David Bullock, 10/13/2006
-
Re: [XOM-interest] Serialize selected elements to a Writer.,
John Cowan, 10/16/2006
- Re: [XOM-interest] Serialize selected elements to a Writer., Elliotte Harold, 10/13/2006
-
Re: [XOM-interest] Serialize selected elements to a Writer.,
Wolfgang Hoschek, 10/13/2006
-
Re: [XOM-interest] Serialize selected elements to a Writer.,
Wolfgang Hoschek, 10/13/2006
- Re: [XOM-interest] Serialize selected elements to a Writer., Tatu Saloranta, 10/13/2006
-
Re: [XOM-interest] Serialize selected elements to a Writer.,
Wolfgang Hoschek, 10/13/2006
-
Re: [XOM-interest] Serialize selected elements to a Writer.,
Elliotte Harold, 10/13/2006
Archive powered by MHonArc 2.6.24.