Package org.ametys.core.cocoon
Class XHTMLFragmentSerializer
- java.lang.Object
-
- org.apache.cocoon.components.serializers.EncodingSerializer
-
- org.apache.cocoon.components.serializers.XMLSerializer
-
- org.ametys.core.cocoon.XHTMLFragmentSerializer
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Component
,Configurable
,Serializer
,SitemapOutputComponent
,XMLConsumer
,XMLConsumer
,ContentHandler
,LexicalHandler
,Locator
public class XHTMLFragmentSerializer extends XMLSerializer
Inherits from cocoon's serializers block XMLSerializer.Empty tags are not collapsed except the ones configured with
tags-to-collapse
.
If there is no such configuration, default tags to collaspe are:- input
- img
- meta
- link
- hr
- br
-
-
Field Summary
Fields Modifier and Type Field Description private static Set<String>
__COLLAPSE_TAGS
List of the tags to collapse.private Set<String>
_tagsToCollapse
Buffer to store tag to collapse.-
Fields inherited from class org.apache.cocoon.components.serializers.XMLSerializer
doctype
-
Fields inherited from class org.apache.cocoon.components.serializers.EncodingSerializer
ATTRIBUTE_LENGTH, ATTRIBUTE_LOCAL, ATTRIBUTE_NSURI, ATTRIBUTE_QNAME, ATTRIBUTE_VALUE, charset, indentPerLevel, namespaces
-
Fields inherited from interface org.apache.cocoon.serialization.Serializer
ROLE
-
-
Constructor Summary
Constructors Constructor Description XHTMLFragmentSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Configuration conf)
void
endElementImpl(String uri, String local, String qual)
-
Methods inherited from class org.apache.cocoon.components.serializers.XMLSerializer
body, charactersImpl, closeElement, comment, endCDATA, endDocument, endDTD, endEntity, getMimeType, head, ignorableWhitespace, processingInstruction, recycle, skippedEntity, startCDATA, startDocument, startDTD, startElementImpl, startEntity
-
Methods inherited from class org.apache.cocoon.components.serializers.EncodingSerializer
characters, encode, encode, encode, endElement, endPrefixMapping, flush, getColumnNumber, getLineNumber, getLocation, getPublicId, getSystemId, setDocumentLocator, setOutputStream, shouldSetContentLength, startElement, startPrefixMapping, write, write, write, write, write, writeIndent, writeln, writeln
-
-
-
-
Field Detail
-
__COLLAPSE_TAGS
private static final Set<String> __COLLAPSE_TAGS
List of the tags to collapse.
-
_tagsToCollapse
private Set<String> _tagsToCollapse
Buffer to store tag to collapse.
-
-
Constructor Detail
-
XHTMLFragmentSerializer
public XHTMLFragmentSerializer()
-
-
Method Detail
-
configure
public void configure(Configuration conf) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Overrides:
configure
in classEncodingSerializer
- Throws:
ConfigurationException
-
endElementImpl
public void endElementImpl(String uri, String local, String qual) throws SAXException
- Overrides:
endElementImpl
in classXMLSerializer
- Throws:
SAXException
-
-