org.enhydra.apache.xml.serialize
Class XHTMLSerializer
java.lang.Object
|
+--org.enhydra.apache.xml.serialize.BaseMarkupSerializer
|
+--org.enhydra.apache.xml.serialize.HTMLSerializer
|
+--org.enhydra.apache.xml.serialize.XHTMLSerializer
- All Implemented Interfaces:
- ContentHandler, DeclHandler, DocumentHandler, DOMSerializer, DTDHandler, LexicalHandler, Serializer
- public class XHTMLSerializer
- extends HTMLSerializer
Implements an XHTML serializer supporting both DOM and SAX
pretty serializing. For usage instructions see either Serializer
or BaseMarkupSerializer
.
- Version:
- $Revision: 1.2 $ $Date: 2005/01/26 08:28:45 $
- Author:
- Assaf Arkin
- See Also:
Serializer
Methods inherited from class org.enhydra.apache.xml.serialize.HTMLSerializer |
characters, characters, endElement, endElement, endElementIO, escapeURI, getEntityRef, serializeElement, startDocument, startElement, startElement |
Methods inherited from class org.enhydra.apache.xml.serialize.BaseMarkupSerializer |
asContentHandler, asDocumentHandler, asDOMSerializer, attributeDecl, comment, comment, content, elementDecl, endCDATA, endDocument, endDTD, endEntity, endNonEscaping, endPrefixMapping, endPreserving, enterElementState, externalEntityDecl, getElementState, getPrefix, ignorableWhitespace, internalEntityDecl, isDocumentState, leaveElementState, notationDecl, prepare, printDoctypeURL, printEscaped, printEscaped, printText, printText, processingInstruction, processingInstructionIO, reset, serialize, serialize, serialize, serializeNode, serializePreRoot, setDocumentLocator, setOutputByteStream, setOutputCharStream, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startNonEscaping, startPrefixMapping, startPreserving, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XHTMLSerializer
public XHTMLSerializer()
- Constructs a new serializer. The serializer cannot be used without
calling
BaseMarkupSerializer.setOutputCharStream(java.io.Writer)
or BaseMarkupSerializer.setOutputByteStream(java.io.OutputStream)
first.
XHTMLSerializer
public XHTMLSerializer(OutputFormat format)
- Constructs a new serializer. The serializer cannot be used without
calling
BaseMarkupSerializer.setOutputCharStream(java.io.Writer)
or BaseMarkupSerializer.setOutputByteStream(java.io.OutputStream)
first.
XHTMLSerializer
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.
- Parameters:
writer
- The writer to useformat
- The output format to use, null for the default
XHTMLSerializer
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.
- Parameters:
output
- The output stream to useformat
- The output format to use, null for the default
setOutputFormat
public void setOutputFormat(OutputFormat format)
- Description copied from interface:
Serializer
- 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.
- Overrides:
setOutputFormat
in class HTMLSerializer
- Following copied from interface:
org.enhydra.apache.xml.serialize.Serializer
- Parameters:
format
- The output format to use
Copyright © 1999 The Apache Software Foundation. All Rights reserved.