public class XHTMLFragmentSerializer extends 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:
Modifier and Type | Field and Description |
---|---|
private static Set<String> |
__COLLAPSE_TAGS
List of the tags to collapse.
|
private Set<String> |
_tagsToCollapse
Buffer to store tag to collapse.
|
doctype
ATTRIBUTE_LENGTH, ATTRIBUTE_LOCAL, ATTRIBUTE_NSURI, ATTRIBUTE_QNAME, ATTRIBUTE_VALUE, charset, indentPerLevel, namespaces
ROLE
Constructor and Description |
---|
XHTMLFragmentSerializer() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration conf) |
void |
endElementImpl(String uri,
String local,
String qual) |
body, charactersImpl, closeElement, comment, endCDATA, endDocument, endDTD, endEntity, getMimeType, head, ignorableWhitespace, processingInstruction, recycle, skippedEntity, startCDATA, startDocument, startDTD, startElementImpl, startEntity
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
private static final Set<String> __COLLAPSE_TAGS
private Set<String> _tagsToCollapse
public XHTMLFragmentSerializer()
public void configure(Configuration conf) throws ConfigurationException
configure
in interface Configurable
configure
in class EncodingSerializer
ConfigurationException
public void endElementImpl(String uri, String local, String qual) throws SAXException
endElementImpl
in class XMLSerializer
SAXException