Class URLNotificationXMLConverter

java.lang.Object
gov.usgs.earthquake.distribution.URLNotificationXMLConverter

public class URLNotificationXMLConverter extends Object
Converts to and from XML for URL notifications
  • Field Details

  • Constructor Details

    • URLNotificationXMLConverter

      public URLNotificationXMLConverter()
  • Method Details

    • toXML

      public static String toXML(URLNotification notification)
      Converts a URLNotification to XML
      Parameters:
      notification - The URLNotification to be converted
      Returns:
      an XML-formatted string
    • parseXML

      public static URLNotification parseXML(InputStream message) throws Exception
      Parses an XML message into a URLNotification
      Parameters:
      message - The convertee
      Returns:
      A parsed URL notification
      Throws:
      Exception - If parse goes wrong