Paul Sandoz wrote:
> Hi,
>
> I noticed that the XmlOutput does not have a way of defining if a chunk
> of characters may require escaping of some characters.
Methods like XmlOutput.text(int) is supposed to serve this purpose. This
way of doing it also allows us not to create a String (although as we
add more versions it quickly gets bloated.)
I thought "int" is a good start, but I don't know how far I should go.
> A performance boost can be obtained if it is know for example that
> characters were produced from an int, Date or byte[] where it is
> guaranteed that no escapable characters will be present.
>
> I think this also leads into supporting direct encoding of byte[], int[]
> etc for FI.
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com