Class Xpp3DomBuilder.DocHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.maven.shared.utils.xml.Xpp3DomBuilder.DocHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Enclosing class:
- Xpp3DomBuilder
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Xpp3Dom
private boolean
private final boolean
private final List<StringBuilder>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
appendToTopValue
(String toAppend) private void
attachToParent
(Xpp3Dom child) void
characters
(char[] ch, int start, int length) void
endElement
(String uri, String localName, String qName) private Xpp3Dom
pop()
private boolean
pushOnStack
(Xpp3Dom child) void
startElement
(String uri, String localName, String qName, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
elemStack
-
values
-
result
Xpp3Dom result -
trim
private final boolean trim -
spacePreserve
private boolean spacePreserve
-
-
Constructor Details
-
DocHandler
DocHandler(boolean trim)
-
-
Method Details
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
pop
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
appendToTopValue
-