Class ByteReceiver

  • Direct Known Subclasses:
    DecodingByteReceiver, SingleByteReceiver

    public abstract class ByteReceiver
    extends java.lang.Object
    This class represents a receiver for bytes. Extenders of this class will accept an input stream, and will read from it as requested a chunk at a time.
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteReceiver()
      Constructor
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract boolean dealWithBytes​(java.io.InputStream is)
      Read a byte stream and process bytes.
      void finishUp()
      Finish up all processing.
      • Methods inherited from class java.lang.Object

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

      • ByteReceiver

        public ByteReceiver()
        Constructor
    • Method Detail

      • dealWithBytes

        public abstract boolean dealWithBytes​(java.io.InputStream is)
                                       throws java.io.IOException,
                                              ManifoldCFException
        Read a byte stream and process bytes.
        Returns:
        true if abort signalled, false if end of stream reached.
        Throws:
        java.io.IOException
        ManifoldCFException