public abstract class CharacterInput extends PersistentDatabaseObject
Modifier and Type | Field and Description |
---|---|
static String |
_rcsid |
protected long |
charLength |
protected String |
hashValue |
protected Reader |
stream |
Constructor and Description |
---|
CharacterInput()
Construct from nothing.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
calculateHashValue()
Calculate the datum's hash value
|
protected abstract 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() |
abstract InputStream |
getUtf8Stream()
Open a Utf8 stream directly
|
abstract long |
getUtf8StreamLength()
Get binary UTF8 stream length directly
|
protected static void |
handleIOException(IOException e,
String context) |
protected abstract void |
openStream()
Open a reader, for use by a caller, until closeStream is called
|
abstract CharacterInput |
transfer()
Transfer to a new object; this causes the current object to become "already discarded"
|
public static final String _rcsid
protected Reader stream
protected long charLength
protected String hashValue
public Reader getStream() throws ManifoldCFException
ManifoldCFException
public void doneWithStream() throws ManifoldCFException
PersistentDatabaseObject
doneWithStream
in class PersistentDatabaseObject
ManifoldCFException
public long getCharacterLength() throws ManifoldCFException
ManifoldCFException
public String getHashValue() throws ManifoldCFException
ManifoldCFException
public abstract InputStream getUtf8Stream() throws ManifoldCFException
ManifoldCFException
public abstract long getUtf8StreamLength() throws ManifoldCFException
ManifoldCFException
public abstract CharacterInput transfer()
public void discard() throws ManifoldCFException
discard
in class PersistentDatabaseObject
ManifoldCFException
protected abstract void openStream() throws ManifoldCFException
ManifoldCFException
protected void closeStream() throws ManifoldCFException
ManifoldCFException
protected abstract void calculateLength() throws ManifoldCFException
ManifoldCFException
protected abstract void calculateHashValue() throws ManifoldCFException
ManifoldCFException
protected static void handleIOException(IOException e, String context) throws ManifoldCFException
ManifoldCFException