Package gov.usgs.earthquake.product.io
Class BinaryProductSource
java.lang.Object
gov.usgs.earthquake.product.io.BinaryProductSource
- All Implemented Interfaces:
ProductSource
Parser for binary format for product data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Free any resources associated with this source.void
streamTo
(ProductHandler out) Send a product to the ProductOutput.
-
Constructor Details
-
BinaryProductSource
Constructor. Sets up a new BinaryIO- Parameters:
in
- an InputStream
-
-
Method Details
-
streamTo
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:
Exception
- if error occurs
-
close
public void close()Free any resources associated with this source.- Specified by:
close
in interfaceProductSource
-