public class XHtmlSerializerFactory.XHTMLSerializer extends org.apache.cocoon.components.serializers.util.XHTMLSerializer implements Serializer
A pedantinc XHTML serializer encoding all recognized entities with their proper HTML names.
For configuration options of this serializer, please look at the
EncodingSerializer
,
in addition to those, this serializer also support the specification of a
default doctype. This default will be used if no document type is received
in the SAX events.
The value mytype can be one of:
none
"strict
"loose
"frameset
"Constructor and Description |
---|
XHTMLSerializer() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose the serializer.
|
void |
init(ProcessingContext context,
ProcessingComponentConfiguration config)
Initialize this component.
|
body, encode, endElementImpl, getMimeType, head, isCdataElement, setDoctypeDefault, setOmitXmlDeclaration, startElementImpl
charactersImpl, closeElement, comment, endCDATA, endDocument, endDTD, endEntity, ignorableWhitespace, processingInstruction, recycle, skippedEntity, startCDATA, startDocument, startDTD, startEntity
characters, encode, encode, endElement, endPrefixMapping, flush, getColumnNumber, getLineNumber, getLocation, getPublicId, getSystemId, include, setDocumentLocator, setEncoding, setIndentPerLevel, setOutputStream, setup, startElement, startPrefixMapping, write, write, write, write, write, writeIndent, writeln, writeln
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
public void init(ProcessingContext context, ProcessingComponentConfiguration config) throws IOException
Serializer
init
in interface Serializer
context
- The invocation context.config
- The configuration for this component.IOException
Serializer.init(org.apache.sling.rewriter.ProcessingContext, org.apache.sling.rewriter.ProcessingComponentConfiguration)
public void dispose()
Serializer
dispose
in interface Serializer
Serializer.dispose()
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.