Class ByteReceiver
- java.lang.Object
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.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.
-
-
-
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
-
finishUp
public void finishUp() throws ManifoldCFException
Finish up all processing. Called ONLY if we haven't already aborted.- Throws:
ManifoldCFException
-
-