FileDocCategorySizeDatePackage
XHTMLSerializer.javaAPI DocApache Xerces 3.0.13520Fri Sep 14 20:33:52 BST 2007org.apache.xml.serialize

XHTMLSerializer

public class XHTMLSerializer extends HTMLSerializer
Implements an XHTML serializer supporting both DOM and SAX pretty serializing. For usage instructions see either {@link Serializer} or {@link BaseMarkupSerializer}.
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.
version
$Revision: 447253 $ $Date: 2006-09-18 01:32:50 -0400 (Mon, 18 Sep 2006) $
author
Assaf Arkin
see
Serializer

Fields Summary
Constructors Summary
public XHTMLSerializer()
Constructs a new serializer. The serializer cannot be used without calling {@link #setOutputCharStream} or {@link #setOutputByteStream} first.

        super( true, new OutputFormat( Method.XHTML, null, false ) );
    
public XHTMLSerializer(OutputFormat format)
Constructs a new serializer. The serializer cannot be used without calling {@link #setOutputCharStream} or {@link #setOutputByteStream} first.

        super( true, format != null ? format : new OutputFormat( Method.XHTML, null, false ) );
    
public XHTMLSerializer(Writer writer, OutputFormat format)
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.

param
writer The writer to use
param
format The output format to use, null for the default

        super( true, format != null ? format : new OutputFormat( Method.XHTML, null, false ) );
        setOutputCharStream( writer );
    
public XHTMLSerializer(OutputStream output, OutputFormat format)
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.

param
output The output stream to use
param
format The output format to use, null for the default

        super( true, format != null ? format : new OutputFormat( Method.XHTML, null, false ) );
        setOutputByteStream( output );
    
Methods Summary
public voidsetOutputFormat(OutputFormat format)

        super.setOutputFormat( format != null ? format : new OutputFormat( Method.XHTML, null, false ) );