public class HtmlSerializerFactory.HTMLSerializer extends org.apache.cocoon.components.serializers.util.HTMLSerializer implements Serializer
A serializer converting XHTML into plain old HTML.
For configuration options of this serializer, please look at the
XHtmlSerializerFactory
and
EncodingSerializer
.
Any of the XHTML document type declared or used will be converted into
its HTML 4.01 counterpart, and in addition to those a "compatible" doctype
can be supported to exploit a couple of shortcuts into MSIE's rendering
engine. The values for the doctype-default
can then be:
none
"compatible
"strict
"loose
"frameset
"HTML401_DOCTYPE_COMPATIBLE, HTML401_DOCTYPE_FRAMESET, HTML401_DOCTYPE_STRICT, HTML401_DOCTYPE_TRANSITIONAL
Constructor and Description |
---|
HTMLSerializer() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose the serializer.
|
void |
init(ProcessingContext context,
ProcessingComponentConfiguration config)
Initialize this component.
|
body, endElementImpl, head, setDoctypeDefault, startElementImpl
encode, getMimeType, isCdataElement, setOmitXmlDeclaration
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.