Class BinaryProductSource

java.lang.Object
gov.usgs.earthquake.product.io.BinaryProductSource
All Implemented Interfaces:
ProductSource

public class BinaryProductSource extends Object implements ProductSource
Parser for binary format for product data.
  • Constructor Details

    • BinaryProductSource

      public BinaryProductSource(InputStream in)
      Constructor. Sets up a new BinaryIO
      Parameters:
      in - an InputStream
  • Method Details

    • streamTo

      public void streamTo(ProductHandler out) throws Exception
      Description copied from interface: ProductSource
      Send a product to the ProductOutput.
      Specified by:
      streamTo in interface ProductSource
      Parameters:
      out - the output that will receive the product.
      Throws:
      Exception - if error occurs
    • close

      public void close()
      Free any resources associated with this source.
      Specified by:
      close in interface ProductSource