Class XHTMLSerializer
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xml.serialize.BaseMarkupSerializer
-
- org.smooks.engine.delivery.sax.ng.org.apache.xml.serialize.HTMLSerializer
-
- org.smooks.engine.delivery.sax.ng.org.apache.xml.serialize.XHTMLSerializer
-
- All Implemented Interfaces:
DOMSerializer
,Serializer
,ContentHandler
,DocumentHandler
,DTDHandler
,DeclHandler
,LexicalHandler
public class XHTMLSerializer extends HTMLSerializer
Deprecated.This class was deprecated in Xerces 2.6.2. It is recommended that new applications use JAXP's Transformation API for XML (TrAX) for serializing XHTML. See the Xerces documentation for more information.Implements an XHTML serializer supporting both DOM and SAX pretty serializing. For usage instructions see eitherSerializer
orBaseMarkupSerializer
.- Version:
- $Revision$ $Date$
- Author:
- Assaf Arkin
- See Also:
Serializer
-
-
Field Summary
-
Fields inherited from class org.smooks.engine.delivery.sax.ng.org.apache.xml.serialize.HTMLSerializer
XHTMLNamespace
-
Fields inherited from class org.smooks.engine.delivery.sax.ng.org.apache.xml.serialize.BaseMarkupSerializer
_docTypePublicId, _docTypeSystemId, _encodingInfo, _format, _indenting, _prefixes, _printer, _started, fCurrentNode, fDOMError, fDOMErrorHandler, fDOMFilter, features, fStrBuffer
-
-
Constructor Summary
Constructors Constructor Description XHTMLSerializer()
Deprecated.Constructs a new serializer.XHTMLSerializer(OutputStream output, OutputFormat format)
Deprecated.Constructs a new serializer that writes to the specified output stream using the specified output format.XHTMLSerializer(Writer writer, OutputFormat format)
Deprecated.Constructs a new serializer that writes to the specified writer using the specified output format.XHTMLSerializer(OutputFormat format)
Deprecated.Constructs a new serializer.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
setOutputFormat(OutputFormat format)
Deprecated.Specifies an output format for this serializer.-
Methods inherited from class org.smooks.engine.delivery.sax.ng.org.apache.xml.serialize.HTMLSerializer
characters, characters, endElement, endElement, endElementIO, escapeURI, getEntityRef, serializeElement, setXHTMLNamespace, startDocument, startElement, startElement
-
Methods inherited from class org.smooks.engine.delivery.sax.ng.org.apache.xml.serialize.BaseMarkupSerializer
asContentHandler, asDocumentHandler, asDOMSerializer, attributeDecl, checkUnboundNamespacePrefixedNode, cleanup, comment, comment, content, elementDecl, endCDATA, endDocument, endDTD, endEntity, endNonEscaping, endPrefixMapping, endPreserving, enterElementState, externalEntityDecl, fatalError, getElementState, getPrefix, ignorableWhitespace, internalEntityDecl, isDocumentState, leaveElementState, modifyDOMError, notationDecl, prepare, printCDATAText, printDoctypeURL, printEscaped, printEscaped, printText, printText, processingInstruction, processingInstructionIO, reset, serialize, serialize, serialize, serializeNode, serializePreRoot, setDocumentLocator, setOutputByteStream, setOutputCharStream, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startNonEscaping, startPrefixMapping, startPreserving, surrogates, unparsedEntityDecl
-
-
-
-
Constructor Detail
-
XHTMLSerializer
public XHTMLSerializer()
Deprecated.Constructs a new serializer. The serializer cannot be used without callingBaseMarkupSerializer.setOutputCharStream(java.io.Writer)
orBaseMarkupSerializer.setOutputByteStream(java.io.OutputStream)
first.
-
XHTMLSerializer
public XHTMLSerializer(OutputFormat format)
Deprecated.Constructs a new serializer. The serializer cannot be used without callingBaseMarkupSerializer.setOutputCharStream(java.io.Writer)
orBaseMarkupSerializer.setOutputByteStream(java.io.OutputStream)
first.
-
XHTMLSerializer
public XHTMLSerializer(Writer writer, OutputFormat format)
Deprecated.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)
Deprecated.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
-
-
Method Detail
-
setOutputFormat
public void setOutputFormat(OutputFormat format)
Deprecated.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.- Specified by:
setOutputFormat
in interfaceSerializer
- Overrides:
setOutputFormat
in classHTMLSerializer
- Parameters:
format
- The output format to use
-
-