public class MarkupDigester extends Digester
See the readme file included with this example for more information.
Modifier and Type | Field and Description |
---|---|
protected StringBuilder |
currTextSegment
The text found in the current element since the last child element.
|
inputSources, W3C_XML_SCHEMA
Constructor and Description |
---|
MarkupDigester()
See equivalent constructor in Digester class.
|
MarkupDigester(SAXParser parser)
See equivalent constructor in Digester class.
|
MarkupDigester(XMLReader reader)
See equivalent constructor in Digester class.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] buffer,
int start,
int length)
Process notification of character data received from the body of
an XML element.
|
void |
endElement(String namespaceURI,
String localName,
String qName)
Process notification of the end of an XML element being reached.
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes list)
Process notification of the start of an XML element being reached.
|
addBeanPropertySetter, addBeanPropertySetter, addCallMethod, addCallMethod, addCallMethod, addCallMethod, addCallParam, addCallParam, addCallParam, addCallParam, addCallParamPath, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addFactoryCreate, addObjectCreate, addObjectCreate, addObjectCreate, addObjectCreate, addObjectParam, addRule, addRuleSet, addSetNestedProperties, addSetNestedProperties, addSetNestedProperties, addSetNext, addSetNext, addSetProperties, addSetProperties, addSetProperties, addSetProperty, addSetRoot, addSetRoot, addSetTop, addSetTop, asyncParse, asyncParse, asyncParse, asyncParse, asyncParse, asyncParse, cleanup, clear, configure, createInputSourceFromURL, createInputSourceFromURL, createSAXException, createSAXException, createSAXException, endDocument, endPrefixMapping, error, fatalError, findNamespaceURI, getClassLoader, getCount, getCurrentElementName, getCurrentNamespaces, getCustomContentHandler, getDocumentLocator, getEntityResolver, getErrorHandler, getExecutorService, getFactory, getFeature, getLogger, getMatch, getMatches, getNamespaceAware, getParser, getProperty, getPublicId, getRoot, getRuleNamespaceURI, getRules, getSAXLogger, getStackAction, getSubstitutor, getUseContextClassLoader, getValidating, getXIncludeAware, getXMLReader, getXMLSchema, ignorableWhitespace, initialize, isConfigured, isEmpty, notationDecl, parse, parse, parse, parse, parse, parse, peek, peek, peek, peek, peekParams, peekParams, pop, pop, popParams, processingInstruction, push, push, pushParams, register, register, registerAll, resetRoot, resolveEntity, setClassLoader, setCustomContentHandler, setDocumentLocator, setEntityResolver, setErrorHandler, setExecutorService, setFeature, setLogger, setNamespaceAware, setProperty, setPublicId, setRuleNamespaceURI, setRules, setSAXLogger, setStackAction, setSubstitutor, setUseContextClassLoader, setValidating, setXIncludeAware, setXMLSchema, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
protected StringBuilder currTextSegment
public MarkupDigester()
public MarkupDigester(SAXParser parser)
public MarkupDigester(XMLReader reader)
public void characters(char[] buffer, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class Digester
buffer
- The characters from the XML documentstart
- Starting offset into the bufferlength
- Number of characters from the bufferSAXException
- if a parsing error is to be reportedpublic void startElement(String namespaceURI, String localName, String qName, Attributes list) throws SAXException
startElement
in interface ContentHandler
startElement
in class Digester
namespaceURI
- The Namespace URI, or the empty string if the element
has no Namespace URI or if Namespace processing is not being performed.localName
- The local name (without prefix), or the empty
string if Namespace processing is not being performed.qName
- The qualified name (with prefix), or the empty
string if qualified names are not available.list
- The attributes attached to the element. If there are
no attributes, it shall be an empty Attributes object.SAXException
- if a parsing error is to be reportedpublic void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class Digester
namespaceURI
- - The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace processing is not
being performed.localName
- - The local name (without prefix), or the empty
string if Namespace processing is not being performed.qName
- - The qualified XML 1.0 name (with prefix), or the
empty string if qualified names are not available.SAXException
- if a parsing error is to be reportedCopyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.