Class SerializerFactory
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xml.serialize.SerializerFactory
-
public abstract class SerializerFactory extends Object
Deprecated.This class was deprecated in Xerces 2.9.0. It is recommended that new applications use the DOM Level 3 LSSerializer or JAXP's Transformation API for XML (TrAX) for serializing XML and HTML. See the Xerces documentation for more information.- Version:
- $Revision$ $Date$
- Author:
- Scott Boag, Assaf Arkin
-
-
Field Summary
Fields Modifier and Type Field Description static String
FactoriesProperty
Deprecated.
-
Constructor Summary
Constructors Constructor Description SerializerFactory()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SerializerFactory
getSerializerFactory(String method)
Deprecated.Register a serializer factory, keyed by the given method string.protected abstract String
getSupportedMethod()
Deprecated.Returns the method supported by this factory and used to register the factory.abstract Serializer
makeSerializer(OutputStream output, OutputFormat format)
Deprecated.Create a new serializer, based on theOutputFormat
and using the output byte stream and the encoding specified in the output format.abstract Serializer
makeSerializer(Writer writer, OutputFormat format)
Deprecated.Create a new serializer, based on theOutputFormat
and using the writer as the output character stream.abstract Serializer
makeSerializer(OutputFormat format)
Deprecated.Create a new serializer based on theOutputFormat
.static void
registerSerializerFactory(SerializerFactory factory)
Deprecated.Register a serializer factory, keyed by the given method string.
-
-
-
Field Detail
-
FactoriesProperty
public static final String FactoriesProperty
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
registerSerializerFactory
public static void registerSerializerFactory(SerializerFactory factory)
Deprecated.Register a serializer factory, keyed by the given method string.
-
getSerializerFactory
public static SerializerFactory getSerializerFactory(String method)
Deprecated.Register a serializer factory, keyed by the given method string.
-
getSupportedMethod
protected abstract String getSupportedMethod()
Deprecated.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.
-
makeSerializer
public abstract Serializer makeSerializer(OutputFormat format)
Deprecated.Create a new serializer based on theOutputFormat
. If this method is used to create the serializer, theSerializer.setOutputByteStream(java.io.OutputStream)
orSerializer.setOutputCharStream(java.io.Writer)
methods must be called before serializing a document.
-
makeSerializer
public abstract Serializer makeSerializer(Writer writer, OutputFormat format)
Deprecated.Create a new serializer, based on theOutputFormat
and using the writer as the output character stream. If this method is used, the encoding property will be ignored.
-
makeSerializer
public abstract Serializer makeSerializer(OutputStream output, OutputFormat format) throws UnsupportedEncodingException
Deprecated.Create a new serializer, based on theOutputFormat
and using the output byte stream and the encoding specified in the output format.- Throws:
UnsupportedEncodingException
- The specified encoding is not supported
-
-