Stefano Mazzocchi said:
> propose to start discussing some XML Output API to propose an addiction
> to the proposed Sun's XML Java API that currently lack output features:
>
> interface Serializer() extends  DocumentHandler {
>
>    void setOutputFormat(OutputFormat); to this is.  The whole point of 
> DocumentHandler
is that you don't want to know that it is serializing, constructing a DOM
tree, or doing something totally different.  I don't know what is gained by
making the Serializer interface an extension to DocumentHandler.

> class SerializerFactory() {
>
>    Serializer makeSerializer(Writer writer, OutputFormat format);
>    Serializer makeSerializer(OutputStream output, OutputFormat
> format)      throws UnsupportedEncodingException;
>
> }

I'm with Assaf Arken that I would like to see a registerSerializerFactory
method on Serializer.  The concept of the SerializerFactory is good.

-scott




Reply via email to