APIdia Launch Partner
Top Fields Constructors Methods
com.sun.org.apache.xml.internal.serialize

public abstract Class SerializerFactory

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.org.apache.xml.internal.serialize.SerializerFactoryImpl
Annotations
@Deprecated
Imports
com.sun.org.apache.xerces.internal.utils.ObjectFactory, java.io.OutputStream, .UnsupportedEncodingException, .Writer, java.util.Collections, .HashMap, .Map, .StringTokenizer, jdk.xml.internal.SecuritySupport

Deprecated

As of JDK 9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation is replaced by that of Xalan. Main class com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl is replaced by com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl.

Authors
Scott Boag, Assaf Arkin

Field Summary

Modifier and TypeField and Description
private static final Map<String, SerializerFactory>
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static SerializerFactory
getSerializerFactory(String method)
References Deprecated SerializerFactory is deprecated or references (maybe indirectly) at least one deprecated element.

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)
References Deprecated OutputFormat and Serializer are deprecated or reference (maybe indirectly) at least one deprecated element.

Create a new serializer based on the OutputFormat.

public abstract Serializer
makeSerializer(Writer writer, OutputFormat format)
References Deprecated OutputFormat and Serializer are deprecated or reference (maybe indirectly) at least one deprecated element.

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)
References Deprecated OutputFormat and Serializer are deprecated or reference (maybe indirectly) at least one deprecated element.

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)
References Deprecated SerializerFactory is deprecated or references (maybe indirectly) at least one deprecated element.

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_factoriesback to summary
private static final Map<String, SerializerFactory> _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)

References Deprecated

SerializerFactory is deprecated or references (maybe indirectly) at least one deprecated element.

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)

References Deprecated

OutputFormat and Serializer are deprecated or reference (maybe indirectly) at least one deprecated element.

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)

References Deprecated

OutputFormat and Serializer are deprecated or reference (maybe indirectly) at least one deprecated element.

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

References Deprecated

OutputFormat and Serializer are deprecated or reference (maybe indirectly) at least one deprecated element.

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)

References Deprecated

SerializerFactory is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

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