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
ManifoldCFExceptionpublic void doneWithStream()
throws ManifoldCFException
PersistentDatabaseObjectdoneWithStream in class PersistentDatabaseObjectManifoldCFExceptionpublic long getCharacterLength()
throws ManifoldCFException
ManifoldCFExceptionpublic String getHashValue() throws ManifoldCFException
ManifoldCFExceptionpublic abstract InputStream getUtf8Stream() throws ManifoldCFException
ManifoldCFExceptionpublic abstract long getUtf8StreamLength()
throws ManifoldCFException
ManifoldCFExceptionpublic abstract CharacterInput transfer()
public void discard()
throws ManifoldCFException
discard in class PersistentDatabaseObjectManifoldCFExceptionprotected abstract void openStream()
throws ManifoldCFException
ManifoldCFExceptionprotected void closeStream()
throws ManifoldCFException
ManifoldCFExceptionprotected abstract void calculateLength()
throws ManifoldCFException
ManifoldCFExceptionprotected abstract void calculateHashValue()
throws ManifoldCFException
ManifoldCFExceptionprotected static void handleIOException(IOException e, String context) throws ManifoldCFException
ManifoldCFException