public class NullCharacterInput extends CharacterInput
Modifier and Type | Field and Description |
---|---|
static String |
_rcsid |
charLength, hashValue, stream
Constructor and Description |
---|
NullCharacterInput()
Construct from nothing.
|
Modifier and Type | Method and Description |
---|---|
protected void |
calculateHashValue()
Calculate the datum's hash value
|
protected void |
calculateLength()
Calculate the datum's length in characters
|
protected void |
closeStream()
Close any open reader
|
void |
discard()
Discard this object permanently
|
void |
doneWithStream()
Close any open streams, but do NOT remove the backing object.
|
long |
getCharacterLength() |
String |
getHashValue() |
Reader |
getStream() |
InputStream |
getUtf8Stream()
Open a Utf8 stream directly
|
long |
getUtf8StreamLength()
Get binary UTF8 stream length directly
|
protected void |
openStream()
Open a reader, for use by a caller, until closeStream is called
|
CharacterInput |
transfer()
Transfer to a new object; this causes the current object to become "already discarded"
|
handleIOException
public static final String _rcsid
public Reader getStream() throws ManifoldCFException
getStream
in class CharacterInput
ManifoldCFException
public void doneWithStream() throws ManifoldCFException
PersistentDatabaseObject
doneWithStream
in class CharacterInput
ManifoldCFException
public long getCharacterLength() throws ManifoldCFException
getCharacterLength
in class CharacterInput
ManifoldCFException
public String getHashValue() throws ManifoldCFException
getHashValue
in class CharacterInput
ManifoldCFException
public InputStream getUtf8Stream() throws ManifoldCFException
getUtf8Stream
in class CharacterInput
ManifoldCFException
public long getUtf8StreamLength() throws ManifoldCFException
getUtf8StreamLength
in class CharacterInput
ManifoldCFException
public CharacterInput transfer()
transfer
in class CharacterInput
public void discard() throws ManifoldCFException
discard
in class CharacterInput
ManifoldCFException
protected void openStream() throws ManifoldCFException
openStream
in class CharacterInput
ManifoldCFException
protected void closeStream() throws ManifoldCFException
closeStream
in class CharacterInput
ManifoldCFException
protected void calculateLength() throws ManifoldCFException
calculateLength
in class CharacterInput
ManifoldCFException
protected void calculateHashValue() throws ManifoldCFException
calculateHashValue
in class CharacterInput
ManifoldCFException