org.apache.xml.serialize
Class XHTMLSerializer

java.lang.Object
  extended by org.apache.xml.serialize.BaseMarkupSerializer
      extended by org.apache.xml.serialize.HTMLSerializer
          extended by org.apache.xml.serialize.XHTMLSerializer
All Implemented Interfaces:
DOMSerializer, Serializer, ContentHandler, DocumentHandler, DTDHandler, DeclHandler, LexicalHandler

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.

public class XHTMLSerializer
extends HTMLSerializer

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

Version:
$Revision: 447253 $ $Date: 2006-09-18 01:32:50 -0400 (Mon, 18 Sep 2006) $
Author:
Assaf Arkin
See Also:
Serializer

Field Summary
 
Fields inherited from class org.apache.xml.serialize.HTMLSerializer
XHTMLNamespace
 
Constructor Summary
XHTMLSerializer()
          Deprecated. Constructs a new serializer.
XHTMLSerializer(OutputFormat format)
          Deprecated. Constructs a new serializer.
XHTMLSerializer(java.io.OutputStream output, OutputFormat format)
          Deprecated. Constructs a new serializer that writes to the specified output stream using the specified output format.
XHTMLSerializer(java.io.Writer writer, OutputFormat format)
          Deprecated. Constructs a new serializer that writes to the specified writer using the specified output format.
 
Method Summary
 void setOutputFormat(OutputFormat format)
          Deprecated. Specifies an output format for this serializer.
 
Methods inherited from class org.apache.xml.serialize.HTMLSerializer
characters, endElement, endElement, endElementIO, setXHTMLNamespace, startElement, startElement
 
Methods inherited from class org.apache.xml.serialize.BaseMarkupSerializer
asContentHandler, asDocumentHandler, asDOMSerializer, attributeDecl, comment, comment, elementDecl, endCDATA, endDocument, endDTD, endEntity, endNonEscaping, endPrefixMapping, endPreserving, externalEntityDecl, ignorableWhitespace, internalEntityDecl, notationDecl, processingInstruction, processingInstructionIO, reset, serialize, serialize, serialize, setDocumentLocator, setOutputByteStream, setOutputCharStream, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startNonEscaping, startPrefixMapping, startPreserving, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XHTMLSerializer

public XHTMLSerializer()
Deprecated. 
Constructs a new serializer. The serializer cannot be used without calling BaseMarkupSerializer.setOutputCharStream(java.io.Writer) or BaseMarkupSerializer.setOutputByteStream(java.io.OutputStream) first.


XHTMLSerializer

public XHTMLSerializer(OutputFormat format)
Deprecated. 
Constructs a new serializer. The serializer cannot be used without calling BaseMarkupSerializer.setOutputCharStream(java.io.Writer) or BaseMarkupSerializer.setOutputByteStream(java.io.OutputStream) first.


XHTMLSerializer

public XHTMLSerializer(java.io.Writer writer,
                       OutputFormat format)
Deprecated. 
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 - The writer to use
format - The output format to use, null for the default

XHTMLSerializer

public XHTMLSerializer(java.io.OutputStream output,
                       OutputFormat format)
Deprecated. 
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 - The output stream to use
format - The output format to use, null for the default
Method Detail

setOutputFormat

public void setOutputFormat(OutputFormat format)
Deprecated. 
Description copied from interface: Serializer
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.

Specified by:
setOutputFormat in interface Serializer
Overrides:
setOutputFormat in class HTMLSerializer
Parameters:
format - The output format to use