org.apache.xml.serialize.transition
Class XHTMLSerializer
java.lang.Object
|
+--org.apache.xml.serialize.transition.BaseMarkupSerializer
|
+--org.apache.xml.serialize.transition.HTMLSerializer
|
+--org.apache.xml.serialize.transition.XHTMLSerializer
- public final class XHTMLSerializer
- extends HTMLSerializer
Implements an XHTML serializer supporting both DOM and SAX
pretty serializing. For usage instructions see either Serializer
or BaseMarkupSerializer
.
- See Also:
Serializer
Methods inherited from class org.apache.xml.serialize.transition.BaseMarkupSerializer |
asContentHandler,
asDocumentHandler,
asDOMSerializer,
attributeDecl,
comment,
comment,
elementDecl,
endCDATA,
endDocument,
endDTD,
endEntity,
endNonEscaping,
endPrefixMapping,
endPreserving,
externalEntityDecl,
getOutputFormat,
getOutputStream,
getWriter,
ignorableWhitespace,
internalEntityDecl,
notationDecl,
processingInstruction,
reset,
serialize,
serialize,
serialize,
serializeXPathReturnNode,
setDocumentLocator,
setOutputStream,
setWriter,
skippedEntity,
startCDATA,
startDocument,
startDTD,
startEntity,
startNonEscaping,
startPrefixMapping,
startPreserving,
unparsedEntityDecl |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
XHTMLSerializer
public XHTMLSerializer()
- Constructs a new serializer. The serializer cannot be used without
calling
#setOutputCharStream
or #setOutputByteStream
first.
XHTMLSerializer
public XHTMLSerializer(OutputFormat format)
- Constructs a new serializer. The serializer cannot be used without
calling
#setOutputCharStream
or #setOutputByteStream
first.
XHTMLSerializer
public XHTMLSerializer(java.io.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.
- Parameters:
writer
- The writer to useformat
- The output format to use, null for the default
XHTMLSerializer
public XHTMLSerializer(java.io.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.
- Parameters:
output
- The output stream to useformat
- The output format to use, null for the default
setOutputFormat
public void setOutputFormat(OutputFormat format)
- Overrides:
- setOutputFormat in class HTMLSerializer
Copyright © 2000 Apache XML Project. All Rights Reserved.