org.base.apps.xml.stax
Class AbstractStAXParser<R>

java.lang.Object
  extended by org.base.apps.xml.AbstractParser<R>
      extended by 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

Constructor Summary
protected AbstractStAXParser()
           
 
Method Summary
protected static XMLInputFactory getInputFactory()
           
protected  void handleAttribute(Attribute attr)
           
protected  void handleCharacters(Characters ch)
           
protected  void handleComment(Comment comm)
           
protected  void handleDTD(DTD dtd)
           
protected  void handleEndDocument(EndDocument end)
           
protected  void handleEndElement(EndElement end)
           
protected  void handleEntityDeclaration(EntityDeclaration decl)
           
protected  void handleEntityReference(EntityReference eref)
           
protected  void handleNamespace(Namespace ns)
           
protected  void handleNotationDeclaration(NotationDeclaration decl)
           
protected  void handleProcessingInstruction(ProcessingInstruction proc)
           
protected  void handleStartDocument(StartDocument sdoc)
           
protected  void handleStartElement(StartElement elem)
           
 R parse(Source src)
           
protected static void setInputFactory(XMLInputFactory inputFactory)
           
 
Methods inherited from class org.base.apps.xml.AbstractParser
error, getOutput, getOutputStack, getResult, log, setOutput, setOutputStack, setResult, trace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractStAXParser

protected AbstractStAXParser()
Method Detail

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

Please visit Base Apps, hosted on Sourceforge.net.

Copyright 2011, Blue Agate Software Entity (BASE)