|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.core.interfaces.CharacterInput
public abstract class CharacterInput
This class represents a lightweight length-determined character stream. It is used as a parameter in parameterized queries that use strings. There are no implied semantics in this class around managing the stream itself. These semantics must be handled by a derived class.
| Field Summary | |
|---|---|
static java.lang.String |
_rcsid
|
protected long |
charLength
|
protected java.lang.String |
hashValue
|
protected java.io.Reader |
stream
|
| Constructor Summary | |
|---|---|
CharacterInput()
Construct from nothing. |
|
| Method Summary | |
|---|---|
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()
|
long |
getCharacterLength()
|
java.lang.String |
getHashValue()
|
java.io.Reader |
getStream()
|
abstract java.io.InputStream |
getUtf8Stream()
Open a Utf8 stream directly |
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" |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String _rcsid
protected java.io.Reader stream
protected long charLength
protected java.lang.String hashValue
| Constructor Detail |
|---|
public CharacterInput()
| Method Detail |
|---|
public java.io.Reader getStream()
throws ManifoldCFException
ManifoldCFException
public void doneWithStream()
throws ManifoldCFException
ManifoldCFException
public long getCharacterLength()
throws ManifoldCFException
ManifoldCFException
public java.lang.String getHashValue()
throws ManifoldCFException
ManifoldCFException
public abstract java.io.InputStream getUtf8Stream()
throws ManifoldCFException
ManifoldCFExceptionpublic abstract CharacterInput transfer()
public void discard()
throws ManifoldCFException
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||