makeSerializer(java.io.OutputStream output,
OutputFormat format)
Create a new serializer, based on the OutputFormat and
using the output byte stream and the encoding specified in the
output format.
makeSerializer(java.io.Writer writer,
OutputFormat format)
Create a new serializer, based on the OutputFormat and
using the writer as the output character stream.
Returns the method supported by this factory and used to register
the factory. This call is required so factories can be added from
a properties file by knowing only the class name. This method is
protected, it is only required by this class but must be implemented
in derived classes.
Create a new serializer, based on the OutputFormat and
using the writer as the output character stream. If this
method is used, the encoding property will be ignored.
makeSerializer
public abstract SerializermakeSerializer(java.io.OutputStream output,
OutputFormat format)
throws java.io.UnsupportedEncodingException
Create a new serializer, based on the OutputFormat and
using the output byte stream and the encoding specified in the
output format.
Throws:
java.io.UnsupportedEncodingException - The specified encoding is
not supported