org.base.apps.xml.stax
Class AbstractStAXParser<R>
java.lang.Object
org.base.apps.xml.AbstractParser<R>
org.base.apps.xml.stax.AbstractStAXParser<R>
- All Implemented Interfaces:
- Parser<R>
- Direct Known Subclasses:
- StAXElementParser
public class AbstractStAXParser<R>
- extends AbstractParser<R>
Base implementation of StAX-based Parser, intended to be extensible.
- Author:
- Kevan Simpson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractStAXParser
protected AbstractStAXParser()
parse
public R parse(Source src)
throws Exception
- Specified by:
parse in interface Parser<R>- Specified by:
parse in class AbstractParser<R>
- Throws:
Exception- See Also:
AbstractParser.parse(javax.xml.transform.Source)
handleAttribute
protected void handleAttribute(Attribute attr)
handleCharacters
protected void handleCharacters(Characters ch)
handleComment
protected void handleComment(Comment comm)
handleDTD
protected void handleDTD(DTD dtd)
handleEndDocument
protected void handleEndDocument(EndDocument end)
handleEndElement
protected void handleEndElement(EndElement end)
handleEntityDeclaration
protected void handleEntityDeclaration(EntityDeclaration decl)
handleEntityReference
protected void handleEntityReference(EntityReference eref)
handleNamespace
protected void handleNamespace(Namespace ns)
handleNotationDeclaration
protected void handleNotationDeclaration(NotationDeclaration decl)
handleProcessingInstruction
protected void handleProcessingInstruction(ProcessingInstruction proc)
handleStartDocument
protected void handleStartDocument(StartDocument sdoc)
handleStartElement
protected void handleStartElement(StartElement elem)
getInputFactory
protected static XMLInputFactory getInputFactory()
- Returns:
- the mInputFactory
setInputFactory
protected static void setInputFactory(XMLInputFactory inputFactory)
- Parameters:
inputFactory - the inputFactory to set
Copyright 2011, Blue Agate Software Entity (BASE)