Package gov.usgs.earthquake.product.io
Class BinaryProductSource
- java.lang.Object
-
- gov.usgs.earthquake.product.io.BinaryProductSource
-
- All Implemented Interfaces:
ProductSource
public class BinaryProductSource extends java.lang.Object implements ProductSource
Parser for binary format for product data.
-
-
Constructor Summary
Constructors Constructor Description BinaryProductSource(java.io.InputStream in)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Free any resources associated with this source.void
streamTo(ProductHandler out)
Send a product to the ProductOutput.
-
-
-
Method Detail
-
streamTo
public void streamTo(ProductHandler out) throws java.lang.Exception
Description copied from interface:ProductSource
Send a product to the ProductOutput.- Specified by:
streamTo
in interfaceProductSource
- Parameters:
out
- the output that will receive the product.- Throws:
java.lang.Exception
- if error occurs
-
close
public void close()
Free any resources associated with this source.- Specified by:
close
in interfaceProductSource
-
-