Class URLContent

java.lang.Object
gov.usgs.earthquake.product.AbstractContent
gov.usgs.earthquake.product.URLContent
All Implemented Interfaces:
Content

public class URLContent extends AbstractContent
Content stored at a URL.
  • Constructor Details

  • Method Details

    • getInputStream

      public InputStream getInputStream() throws IOException
      Description copied from interface: Content
      The content bytes as a stream.
      Returns:
      an InputStream for the wrapped content.
      Throws:
      IOException - on IO error
    • getURL

      public URL getURL()
      Returns:
      the wrapped url.
    • close

      public void close()
      Free any resources associated with this content.