Top Fields Constructors Methods
org.apache.xml.serialize

public abstract Class SerializerFactory

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.xml.serialize.SerializerFactoryImpl
Imports
java.io.OutputStream, .UnsupportedEncodingException, .Writer, java.util.Hashtable, .StringTokenizer

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.

Authors
Scott Boag, Assaf Arkin
Version
$Revision: 699892 $ $Date: 2008-09-29 02:38:27 +0530 (Mon, 29 Sep 2008) $

Field Summary

Modifier and TypeField and Description
private static Hashtable<K, V>
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static SerializerFactory
getSerializerFactory(String method)

Deprecated as a consequence of SerializerFactory being deprecated.
Register a serializer factory, keyed by the given method string.
protected abstract String
getSupportedMethod()

Returns the method supported by this factory and used to register the factory.

public abstract Serializer
makeSerializer(OutputFormat format)

Deprecated as a consequence of OutputFormat and Serializer being deprecated.
Create a new serializer based on the OutputFormat.
public abstract Serializer
makeSerializer(Writer writer, OutputFormat format)

Deprecated as a consequence of OutputFormat and Serializer being deprecated.
Create a new serializer, based on the OutputFormat and using the writer as the output character stream.
public abstract Serializer
makeSerializer(OutputStream output, OutputFormat format)

Deprecated as a consequence of OutputFormat and Serializer being deprecated.
Create a new serializer, based on the OutputFormat and using the output byte stream and the encoding specified in the output format.
public static void
registerSerializerFactory(SerializerFactory factory)

Deprecated as a consequence of SerializerFactory being deprecated.
Register a serializer factory, keyed by the given method string.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_factoriesback to summary
private static Hashtable<K, V> _factories
FactoriesPropertyback to summary
public static final String FactoriesProperty

Constructor Detail

SerializerFactoryback to summary
public SerializerFactory()

Method Detail

getSerializerFactoryback to summary
public static SerializerFactory getSerializerFactory(String method)

Deprecated

as a consequence of SerializerFactory being deprecated. See corresponding docs for further information.

Register a serializer factory, keyed by the given method string.

getSupportedMethodback to summary
protected abstract String getSupportedMethod()

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.

makeSerializerback to summary
public abstract Serializer makeSerializer(OutputFormat format)

Deprecated

as a consequence of OutputFormat and Serializer being deprecated. See corresponding docs for further information.

Create a new serializer based on the OutputFormat. If this method is used to create the serializer, the Serializer#setOutputByteStream or Serializer#setOutputCharStream methods must be called before serializing a document.

makeSerializerback to summary
public abstract Serializer makeSerializer(Writer writer, OutputFormat format)

Deprecated

as a consequence of OutputFormat and Serializer being deprecated. See corresponding docs for further information.

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.

makeSerializerback to summary
public abstract Serializer makeSerializer(OutputStream output, OutputFormat format) throws UnsupportedEncodingException

Deprecated

as a consequence of OutputFormat and Serializer being deprecated. See corresponding docs for further information.

Create a new serializer, based on the OutputFormat and using the output byte stream and the encoding specified in the output format.

Exceptions
UnsupportedEncodingException:
The specified encoding is not supported
registerSerializerFactoryback to summary
public static void registerSerializerFactory(SerializerFactory factory)

Deprecated

as a consequence of SerializerFactory being deprecated. See corresponding docs for further information.

Register a serializer factory, keyed by the given method string.