Class XmlProductHandler

java.lang.Object
gov.usgs.earthquake.product.io.XmlProductHandler
All Implemented Interfaces:
ProductHandler

public class XmlProductHandler extends Object implements ProductHandler
Store a product to an OutputStream using XML.
  • Field Details

    • XML_DECLARATION

      public static final String XML_DECLARATION
      Declaration for XML and version
      See Also:
    • PRODUCT_XML_NAMESPACE

      public static final String PRODUCT_XML_NAMESPACE
      Namespace for XML product
      See Also:
    • PRODUCT_ELEMENT

      public static final String PRODUCT_ELEMENT
      Element for product
      See Also:
    • PRODUCT_ATTRIBUTE_ID

      public static final String PRODUCT_ATTRIBUTE_ID
      Product Attribute for id
      See Also:
    • PRODUCT_ATTRIBUTE_UPDATED

      public static final String PRODUCT_ATTRIBUTE_UPDATED
      Product Attribute for updateTime
      See Also:
    • PRODUCT_ATTRIBUTE_STATUS

      public static final String PRODUCT_ATTRIBUTE_STATUS
      Product Attribute for status
      See Also:
    • PROPERTY_ELEMENT

      public static final String PROPERTY_ELEMENT
      Element for property
      See Also:
    • PROPERTY_ATTRIBUTE_NAME

      public static final String PROPERTY_ATTRIBUTE_NAME
      Property attribute for name
      See Also:
    • PROPERTY_ATTRIBUTE_VALUE

      public static final String PROPERTY_ATTRIBUTE_VALUE
      Property attribute for value
      See Also:
    • CONTENT_ELEMENT

      public static final String CONTENT_ELEMENT
      Element for content
      See Also:
    • CONTENT_ATTRIBUTE_PATH

      public static final String CONTENT_ATTRIBUTE_PATH
      Content attribute for path
      See Also:
    • CONTENT_ATTRIBUTE_TYPE

      public static final String CONTENT_ATTRIBUTE_TYPE
      Content attribute for type
      See Also:
    • CONTENT_ATTRIBUTE_LENGTH

      public static final String CONTENT_ATTRIBUTE_LENGTH
      Content attribute for length
      See Also:
    • CONTENT_ATTRIBUTE_MODIFIED

      public static final String CONTENT_ATTRIBUTE_MODIFIED
      Content attribute for modified
      See Also:
    • CONTENT_ATTRIBUTE_HREF

      public static final String CONTENT_ATTRIBUTE_HREF
      Used with URLContent.
      See Also:
    • CONTENT_ATTRIBUTE_ENCODED

      public static final String CONTENT_ATTRIBUTE_ENCODED
      Content attribute for encoded
      See Also:
    • SIGNATURE_ELEMENT

      public static final String SIGNATURE_ELEMENT
      Element for signature
      See Also:
    • SIGNATURE_ATTRIBUTE_VERSION

      public static final String SIGNATURE_ATTRIBUTE_VERSION
      Signature attribute for version
      See Also:
    • SIGNATURE_HISTORY_ELEMENT

      public static final String SIGNATURE_HISTORY_ELEMENT
      Element for signature history
      See Also:
    • SIGNATURE_HISTORY_ENTRY_ELEMENT

      public static final String SIGNATURE_HISTORY_ENTRY_ELEMENT
      Element for entries to the signature history
      See Also:
    • SIGNATURE_HISTORY_SIGNATURE_ATTRIBUTE_

      public static final String SIGNATURE_HISTORY_SIGNATURE_ATTRIBUTE_
      Signature history attribute for signature
      See Also:
    • SIGNATURE_HISTORY_VERSION_ATTRIBUTE_

      public static final String SIGNATURE_HISTORY_VERSION_ATTRIBUTE_
      Signature history attribute for signature version
      See Also:
  • Constructor Details

    • XmlProductHandler

      public XmlProductHandler(OutputStream out)
      Create a new XmlProductHandler object.
      Parameters:
      out - the OutputStream where xml will be written.
    • XmlProductHandler

      public XmlProductHandler(OutputStream out, boolean includeDeclaration)
      Create a new XmlProductHandler object.
      Parameters:
      out - the OutputStream where xml will be written.
      includeDeclaration - whether to include the XML declaration with output
  • Method Details