Class ByteReceiver
- java.lang.Object
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.ByteReceiver
-
- Direct Known Subclasses:
DecodingByteReceiver,SingleByteReceiver
public abstract class ByteReceiver extends java.lang.ObjectThis 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 booleandealWithBytes(java.io.InputStream is)Read a byte stream and process bytes.voidfinishUp()Finish up all processing.
-
-
-
Method Detail
-
dealWithBytes
public abstract boolean dealWithBytes(java.io.InputStream is) throws java.io.IOException, ManifoldCFExceptionRead a byte stream and process bytes.- Returns:
- true if abort signalled, false if end of stream reached.
- Throws:
java.io.IOExceptionManifoldCFException
-
finishUp
public void finishUp() throws ManifoldCFExceptionFinish up all processing. Called ONLY if we haven't already aborted.- Throws:
ManifoldCFException
-
-