public abstract class SerializerFactory
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | FactoriesPropertyDeprecated.  | 
| Constructor and Description | 
|---|
| SerializerFactory()Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| static SerializerFactory | getSerializerFactory(java.lang.String method)Deprecated.  Register a serializer factory, keyed by the given
 method string. | 
| protected abstract java.lang.String | getSupportedMethod()Deprecated.  Returns the method supported by this factory and used to register
 the factory. | 
| abstract Serializer | makeSerializer(OutputFormat format)Deprecated.  Create a new serializer based on the  OutputFormat. | 
| abstract Serializer | makeSerializer(java.io.OutputStream output,
              OutputFormat format)Deprecated.  Create a new serializer, based on the  OutputFormatand
 using the output byte stream and the encoding specified in the
 output format. | 
| abstract Serializer | makeSerializer(java.io.Writer writer,
              OutputFormat format)Deprecated.  Create a new serializer, based on the  OutputFormatand
 using the writer as the output character stream. | 
| static void | registerSerializerFactory(SerializerFactory factory)Deprecated.  Register a serializer factory, keyed by the given
 method string. | 
public static final java.lang.String FactoriesProperty
public static void registerSerializerFactory(SerializerFactory factory)
public static SerializerFactory getSerializerFactory(java.lang.String method)
protected abstract java.lang.String getSupportedMethod()
public abstract Serializer makeSerializer(OutputFormat format)
OutputFormat.
 If this method is used to create the serializer, the Serializer.setOutputByteStream(java.io.OutputStream) or Serializer.setOutputCharStream(java.io.Writer)
 methods must be called before serializing a document.public abstract Serializer makeSerializer(java.io.Writer writer, OutputFormat format)
OutputFormat and
 using the writer as the output character stream.  If this
 method is used, the encoding property will be ignored.public abstract Serializer makeSerializer(java.io.OutputStream output, OutputFormat format) throws java.io.UnsupportedEncodingException
OutputFormat and
 using the output byte stream and the encoding specified in the
 output format.java.io.UnsupportedEncodingException - The specified encoding is
   not supportedCopyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.