Class URLNotificationParser

java.lang.Object
org.xml.sax.helpers.DefaultHandler
gov.usgs.util.SAXAdapter
gov.usgs.earthquake.distribution.URLNotificationParser
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class URLNotificationParser extends SAXAdapter
This class is not intended to be instantiated directly. Instead, use the static URLNotification.parse method
See Also:
  • Field Details

  • Constructor Details

    • URLNotificationParser

      protected URLNotificationParser()
      Construct a URLNotificationParser. This class is not intended to be instantiated directly. Instead, use the static URLNotification.parse method.
  • Method Details

    • getNotification

      public URLNotification getNotification()
      Returns:
      the parsed notification
    • onStartElement

      public void onStartElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
      SAXAdapter start element handler.
      Overrides:
      onStartElement in class SAXAdapter
      Parameters:
      uri - element uri.
      localName - element localName.
      qName - element qName.
      attributes - element attributes.
      Throws:
      SAXException - if there is an error.