Version: 1.1.1

org.omg.lsae.sax
Class EventParser

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.omg.lsae.sax.EventParser
All Implemented Interfaces:
LsaeTags, ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class EventParser
extends DefaultHandler
implements LsaeTags


Field Summary
 
Fields inherited from interface org.omg.lsae.sax.LsaeTags
aCOMPLETED_STEPS, aNEW_STATE, aPERCENTAGE, aPREV_STATE, aREMAINING, aTOTAL_STEPS, HEARTBEAT, MSG, PERCENT, STATE, STEP, TIME
 
Constructor Summary
EventParser()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
          Called for #PCDATA.
 void endDocument()
          Called at the end of the parsed document.
 void endElement(String namespaceURI, String name, String qName)
          Called when an element ends.
 AnalysisEvent[] parse(InputStream xml)
          Parse the contents coming from the given input stream.
 AnalysisEvent[] parse(Reader xmlReader)
          Parse the contents coming from the given reader.
 AnalysisEvent[] parse(String xmlFilename)
          Parse the contents of the given file.
 void setDocumentLocator(Locator l)
          Set document locator.
 void startDocument()
          Called at the beginning of the parsed document.
 void startElement(String namespaceURI, String name, String qName, Attributes attrs)
          Called when an element starts.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventParser

public EventParser()
Method Detail

startDocument

public void startDocument()
                   throws SAXException
Called at the beginning of the parsed document.

Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class DefaultHandler
Throws:
SAXException

endDocument

public void endDocument()
                 throws SAXException
Called at the end of the parsed document.

Specified by:
endDocument in interface ContentHandler
Overrides:
endDocument in class DefaultHandler
Throws:
SAXException

startElement

public void startElement(String namespaceURI,
                         String name,
                         String qName,
                         Attributes attrs)
                  throws SAXException
Called when an element starts.

Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException

endElement

public void endElement(String namespaceURI,
                       String name,
                       String qName)
                throws SAXException
Called when an element ends.

Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
Throws:
SAXException

setDocumentLocator

public void setDocumentLocator(Locator l)
Set document locator. There is usually no need to use it from outside the parser.

Specified by:
setDocumentLocator in interface ContentHandler
Overrides:
setDocumentLocator in class DefaultHandler

characters

public void characters(char[] ch,
                       int start,
                       int length)
Called for #PCDATA.

Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler

parse

public AnalysisEvent[] parse(String xmlFilename)
                      throws MobyException
Parse the contents of the given file.

Throws:
MobyException

parse

public AnalysisEvent[] parse(InputStream xml)
                      throws MobyException
Parse the contents coming from the given input stream.

Throws:
MobyException

parse

public AnalysisEvent[] parse(Reader xmlReader)
                      throws MobyException
Parse the contents coming from the given reader.

Throws:
MobyException

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010