FileDocCategorySizeDatePackage
XHTMLSerializer.javaAPI DocJava SE 6 API3230Tue Jun 10 00:23:06 BST 2008com.sun.org.apache.xml.internal.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: 1.2.6.1 $ $Date: 2005/09/09 07:26:18 $
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(com.sun.org.apache.xml.internal.serialize.OutputFormat format)

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