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 TypeMethodDescriptionvoidclose()Free any resources associated with this source.voidstreamTo(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:ProductSourceSend a product to the ProductOutput.- Specified by:
streamToin 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:
closein interfaceProductSource
-