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

pack-priv final Class SerializerFactoryImpl

extends SerializerFactory
Class Inheritance
Annotations
@Deprecated
Imports
java.io.OutputStream, .Writer, .UnsupportedEncodingException, com.sun.org.apache.xerces.internal.dom.DOMMessageFormatter

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.

Default serializer factory can construct serializers for the three markup serializers (XML, HTML, XHTML ).
Authors
Scott Boag, Assaf Arkin

Field Summary

Modifier and TypeField and Description
private String
Inherited from com.sun.org.apache.xml.internal.serialize.SerializerFactory:
FactoriesProperty

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private Serializer
getSerializer(OutputFormat format)
References Deprecated OutputFormat and Serializer are deprecated or reference (maybe indirectly) at least one deprecated element.

protected String
getSupportedMethod()

Implements abstract com.sun.org.apache.xml.internal.serialize.SerializerFactory.getSupportedMethod.

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

public Serializer
makeSerializer(OutputFormat format)

Implements abstract com.sun.org.apache.xml.internal.serialize.SerializerFactory.makeSerializer.

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

Implements abstract com.sun.org.apache.xml.internal.serialize.SerializerFactory.makeSerializer.

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

Implements abstract com.sun.org.apache.xml.internal.serialize.SerializerFactory.makeSerializer.

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.

Inherited from com.sun.org.apache.xml.internal.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)

References Deprecated

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

See corresponding docs for further information.

getSupportedMethodback to summary
protected String getSupportedMethod()

Implements abstract com.sun.org.apache.xml.internal.serialize.SerializerFactory.getSupportedMethod.

Doc from com.sun.org.apache.xml.internal.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 com.sun.org.apache.xml.internal.serialize.SerializerFactory.makeSerializer.

Doc from com.sun.org.apache.xml.internal.serialize.SerializerFactory.makeSerializer.

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

Implements abstract com.sun.org.apache.xml.internal.serialize.SerializerFactory.makeSerializer.

Doc from com.sun.org.apache.xml.internal.serialize.SerializerFactory.makeSerializer.

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

Implements abstract com.sun.org.apache.xml.internal.serialize.SerializerFactory.makeSerializer.

Doc from com.sun.org.apache.xml.internal.serialize.SerializerFactory.makeSerializer.

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