Class DecodingByteReceiver
- java.lang.Object
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.ByteReceiver
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.DecodingByteReceiver
-
public class DecodingByteReceiver extends ByteReceiver
This class represents a ByteReceiver that passes decoded characters on to a supplied CharacterReceiver.
-
-
Field Summary
Fields Modifier and Type Field Description protected CharacterReceivercharReceiverprotected java.lang.StringcharSet
-
Constructor Summary
Constructors Constructor Description DecodingByteReceiver(int chunkSize, java.lang.String charSet, CharacterReceiver charReceiver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandealWithBytes(java.io.InputStream is)Read a byte stream and process bytes.voidfinishUp()Finish up all processing.
-
-
-
Field Detail
-
charReceiver
protected final CharacterReceiver charReceiver
-
charSet
protected final java.lang.String charSet
-
-
Constructor Detail
-
DecodingByteReceiver
public DecodingByteReceiver(int chunkSize, java.lang.String charSet, CharacterReceiver charReceiver)
-
-
Method Detail
-
dealWithBytes
public final boolean dealWithBytes(java.io.InputStream is) throws java.io.IOException, ManifoldCFExceptionRead a byte stream and process bytes.- Specified by:
dealWithBytesin classByteReceiver- Returns:
- true if abort signalled, false if end of stream reached.
- Throws:
java.io.IOExceptionManifoldCFException
-
finishUp
public void finishUp() throws ManifoldCFExceptionFinish up all processing.- Overrides:
finishUpin classByteReceiver- Throws:
ManifoldCFException
-
-