Class NullCharacterInput
- java.lang.Object
-
- org.apache.manifoldcf.core.interfaces.PersistentDatabaseObject
-
- org.apache.manifoldcf.core.interfaces.CharacterInput
-
- org.apache.manifoldcf.core.interfaces.NullCharacterInput
-
public class NullCharacterInput extends CharacterInput
This class represents a null character stream, which has no characters.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_rcsid-
Fields inherited from class org.apache.manifoldcf.core.interfaces.CharacterInput
charLength, hashValue, stream
-
-
Constructor Summary
Constructors Constructor Description NullCharacterInput()Construct from nothing.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcalculateHashValue()Calculate the datum's hash valueprotected voidcalculateLength()Calculate the datum's length in charactersprotected voidcloseStream()Close any open readervoiddiscard()Discard this object permanentlyvoiddoneWithStream()Close any open streams, but do NOT remove the backing object.longgetCharacterLength()java.lang.StringgetHashValue()java.io.ReadergetStream()java.io.InputStreamgetUtf8Stream()Open a Utf8 stream directlylonggetUtf8StreamLength()Get binary UTF8 stream length directlyprotected voidopenStream()Open a reader, for use by a caller, until closeStream is calledCharacterInputtransfer()Transfer to a new object; this causes the current object to become "already discarded"-
Methods inherited from class org.apache.manifoldcf.core.interfaces.CharacterInput
handleIOException
-
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
-
Method Detail
-
getStream
public java.io.Reader getStream() throws ManifoldCFException- Overrides:
getStreamin classCharacterInput- Throws:
ManifoldCFException
-
doneWithStream
public void doneWithStream() throws ManifoldCFExceptionDescription copied from class:PersistentDatabaseObjectClose any open streams, but do NOT remove the backing object. Thus the stream can be reopened in the future.- Overrides:
doneWithStreamin classCharacterInput- Throws:
ManifoldCFException
-
getCharacterLength
public long getCharacterLength() throws ManifoldCFException- Overrides:
getCharacterLengthin classCharacterInput- Throws:
ManifoldCFException
-
getHashValue
public java.lang.String getHashValue() throws ManifoldCFException- Overrides:
getHashValuein classCharacterInput- Throws:
ManifoldCFException
-
getUtf8Stream
public java.io.InputStream getUtf8Stream() throws ManifoldCFExceptionOpen a Utf8 stream directly- Specified by:
getUtf8Streamin classCharacterInput- Throws:
ManifoldCFException
-
getUtf8StreamLength
public long getUtf8StreamLength() throws ManifoldCFExceptionGet binary UTF8 stream length directly- Specified by:
getUtf8StreamLengthin classCharacterInput- Throws:
ManifoldCFException
-
transfer
public CharacterInput transfer()
Transfer to a new object; this causes the current object to become "already discarded"- Specified by:
transferin classCharacterInput
-
discard
public void discard() throws ManifoldCFExceptionDiscard this object permanently- Overrides:
discardin classCharacterInput- Throws:
ManifoldCFException
-
openStream
protected void openStream() throws ManifoldCFExceptionOpen a reader, for use by a caller, until closeStream is called- Specified by:
openStreamin classCharacterInput- Throws:
ManifoldCFException
-
closeStream
protected void closeStream() throws ManifoldCFExceptionClose any open reader- Overrides:
closeStreamin classCharacterInput- Throws:
ManifoldCFException
-
calculateLength
protected void calculateLength() throws ManifoldCFExceptionCalculate the datum's length in characters- Specified by:
calculateLengthin classCharacterInput- Throws:
ManifoldCFException
-
calculateHashValue
protected void calculateHashValue() throws ManifoldCFExceptionCalculate the datum's hash value- Specified by:
calculateHashValuein classCharacterInput- Throws:
ManifoldCFException
-
-