Top Description Fields Constructors Methods
org.apache.xml.serialize

pack-priv final Class SerializerFactoryImpl

extends SerializerFactory
Class Inheritance
Imports
java.io.OutputStream, .UnsupportedEncodingException, .Writer, org.apache.xerces.dom.DOMMessageFormatter

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.

Default serializer factory can construct serializers for the three markup serializers (XML, HTML, XHTML ).
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 String
Inherited from org.apache.xml.serialize.SerializerFactory:
FactoriesProperty

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private Serializer
getSerializer(OutputFormat format)

Deprecated as a consequence of OutputFormat and Serializer being deprecated.
protected String
getSupportedMethod()

Implements abstract org.apache.xml.serialize.SerializerFactory.getSupportedMethod.

Returns the method supported by this factory and used to register the factory.
public Serializer
makeSerializer(OutputFormat format)

Implements abstract org.apache.xml.serialize.SerializerFactory.makeSerializer.

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

Implements abstract org.apache.xml.serialize.SerializerFactory.makeSerializer.

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 Serializer
makeSerializer(OutputStream output, OutputFormat format)

Implements abstract org.apache.xml.serialize.SerializerFactory.makeSerializer.

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.
Inherited from org.apache.xml.serialize.SerializerFactory:
getSerializerFactoryregisterSerializerFactory

Field Detail

_methodback to summary
private String _method

Constructor Detail

SerializerFactoryImplback to summary
pack-priv SerializerFactoryImpl(String method)

Method Detail

getSerializerback to summary
private Serializer getSerializer(OutputFormat format)

Deprecated

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

getSupportedMethodback to summary
protected String getSupportedMethod()

Implements abstract org.apache.xml.serialize.SerializerFactory.getSupportedMethod.

Doc from org.apache.xml.serialize.SerializerFactory.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 Serializer makeSerializer(OutputFormat format)

Implements abstract org.apache.xml.serialize.SerializerFactory.makeSerializer.

Doc from org.apache.xml.serialize.SerializerFactory.makeSerializer.

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 Serializer makeSerializer(Writer writer, OutputFormat format)

Implements abstract org.apache.xml.serialize.SerializerFactory.makeSerializer.

Doc from org.apache.xml.serialize.SerializerFactory.makeSerializer.

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 Serializer makeSerializer(OutputStream output, OutputFormat format) throws UnsupportedEncodingException

Implements abstract org.apache.xml.serialize.SerializerFactory.makeSerializer.

Doc from org.apache.xml.serialize.SerializerFactory.makeSerializer.

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