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 CharacterReceiver
charReceiver
protected java.lang.String
charSet
-
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 boolean
dealWithBytes(java.io.InputStream is)
Read a byte stream and process bytes.void
finishUp()
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, ManifoldCFException
Read a byte stream and process bytes.- Specified by:
dealWithBytes
in classByteReceiver
- 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.- Overrides:
finishUp
in classByteReceiver
- Throws:
ManifoldCFException
-
-