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

public Class XHTMLSerializer

extends HTMLSerializer
Class Inheritance
Annotations
@Deprecated
Imports
java.io.OutputStream, .Writer

Deprecated

This class was deprecated in Xerces 2.6.2. It is recommended that new applications use JAXP's Transformation API for XML (TrAX) for serializing XHTML. See the Xerces documentation for more information.

Implements an XHTML serializer supporting both DOM and SAX pretty serializing. For usage instructions see either Serializer or BaseMarkupSerializer.
Author
Assaf Arkin
See Also
Serializer

Field Summary

Inherited from com.sun.org.apache.xml.internal.serialize.HTMLSerializer:
XHTMLNamespace

Constructor Summary

AccessConstructor and Description
public
XHTMLSerializer()

Constructs a new serializer.

public
XHTMLSerializer(OutputFormat format)
References Deprecated OutputFormat is deprecated or references (maybe indirectly) at least one deprecated element.

Constructs a new serializer.

public
XHTMLSerializer(Writer
The writer to use
writer
,
OutputFormat
The output format to use, null for the default
format
)
References Deprecated OutputFormat is deprecated or references (maybe indirectly) at least one deprecated element.

Constructs a new serializer that writes to the specified writer using the specified output format.

public
XHTMLSerializer(OutputStream
The output stream to use
output
,
OutputFormat
The output format to use, null for the default
format
)
References Deprecated OutputFormat is deprecated or references (maybe indirectly) at least one deprecated element.

Constructs a new serializer that writes to the specified output stream using the specified output format.

Method Summary

Modifier and TypeMethod and Description
public void
setOutputFormat(OutputFormat format)

Overrides com.sun.org.apache.xml.internal.serialize.HTMLSerializer.setOutputFormat.

Implements com.sun.org.apache.xml.internal.serialize.Serializer.setOutputFormat.

References Deprecated OutputFormat is deprecated or references (maybe indirectly) at least one deprecated element.

Specifies an output format for this serializer.

Inherited from com.sun.org.apache.xml.internal.serialize.HTMLSerializer:
characterscharactersendElementendElementendElementIOescapeURIgetEntityRefserializeElementsetXHTMLNamespacestartDocumentstartElementstartElement

Constructor Detail

XHTMLSerializerback to summary
public XHTMLSerializer()

Constructs a new serializer. The serializer cannot be used without calling setOutputCharStream or setOutputByteStream first.

XHTMLSerializerback to summary
public XHTMLSerializer(OutputFormat format)

References Deprecated

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

See corresponding docs for further information.

Constructs a new serializer. The serializer cannot be used without calling setOutputCharStream or setOutputByteStream first.

XHTMLSerializerback to summary
public XHTMLSerializer(Writer writer, OutputFormat format)

References Deprecated

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

See corresponding docs for further information.

Constructs a new serializer that writes to the specified writer using the specified output format. If format is null, will use a default output format.

Parameters
writer:Writer

The writer to use

format:OutputFormat

The output format to use, null for the default

XHTMLSerializerback to summary
public XHTMLSerializer(OutputStream output, OutputFormat format)

References Deprecated

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

See corresponding docs for further information.

Constructs a new serializer that writes to the specified output stream using the specified output format. If format is null, will use a default output format.

Parameters
output:OutputStream

The output stream to use

format:OutputFormat

The output format to use, null for the default

Method Detail

setOutputFormatback to summary
public void setOutputFormat(OutputFormat format)

Overrides com.sun.org.apache.xml.internal.serialize.HTMLSerializer.setOutputFormat.

Implements com.sun.org.apache.xml.internal.serialize.Serializer.setOutputFormat.

Doc from com.sun.org.apache.xml.internal.serialize.Serializer.setOutputFormat.

References Deprecated

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

See corresponding docs for further information.

Specifies an output format for this serializer. It the serializer has already been associated with an output format, it will switch to the new format. This method should not be called while the serializer is in the process of serializing a document.