Package gov.usgs.earthquake.shakemap
Class InfoXMLHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
gov.usgs.earthquake.shakemap.InfoXMLHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
Parser for ShakeMap info.xml metadata.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
InfoXMLHandler
public InfoXMLHandler()Construct a new SAX Handler for an info.xml document.
-
-
Method Details
-
parse
- Parameters:
in- - the file or stream to parse- Returns:
- the ShakeMap associated with this XML handler
- Throws:
Exception- if error occurs
-
getInfo
- Returns:
- the parsed info.
-
startElement
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Parameters:
uri- - the uri for this elementlocalName- - the local name for this elementqName- - the fully-qualified name for this elementattributes- - the attributes of the element
-