XHTMLSerializerpublic 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}. |
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.
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.
super( true, format != null ? format : new OutputFormat( Method.XHTML, null, false ) );
setOutputByteStream( output );
|
|