FileDocCategorySizeDatePackage
XHTMLSerializer.javaAPI DocJava SE 5 API5092Fri Aug 26 14:56:02 BST 2005com.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
version
$Revision: 1.10 $ $Date: 2004/02/16 05:24:55 $
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 ) );