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.
|
doctypeATTRIBUTE_LENGTH, ATTRIBUTE_LOCAL, ATTRIBUTE_NSURI, ATTRIBUTE_QNAME, ATTRIBUTE_VALUE, charset, indentPerLevel, namespacesROLE| 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, startEntitycharacters, encode, encode, encode, endElement, endPrefixMapping, flush, getColumnNumber, getLineNumber, getLocation, getPublicId, getSystemId, setDocumentLocator, setOutputStream, shouldSetContentLength, startElement, startPrefixMapping, write, write, write, write, write, writeIndent, writeln, writelnprivate static final Set<String> __COLLAPSE_TAGS
private Set<String> _tagsToCollapse
public XHTMLFragmentSerializer()
public void configure(Configuration conf) throws ConfigurationException
configure in interface Configurableconfigure in class EncodingSerializerConfigurationExceptionpublic void endElementImpl(String uri, String local, String qual) throws SAXException
endElementImpl in class XMLSerializerSAXException