Constructs a new serializer. The serializer cannot be used without
first.
XHTMLSerializer
Constructs a new serializer. The serializer cannot be used without
first.
XHTMLSerializer
public XHTMLSerializer(java.io.Writer writer,
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,
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
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.