Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BinaryProductSource

        public BinaryProductSource​(java.io.InputStream in)
        Constructor. Sets up a new BinaryIO
        Parameters:
        in - an InputStream
    • 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 interface ProductSource
        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 interface ProductSource