|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.core.interfaces.BinaryInput
public abstract class BinaryInput
This class represents a lightweight length-determined stream. It is used as a parameter in parameterized queries that use blobs. 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 |
length
|
protected java.io.InputStream |
stream
|
| Constructor Summary | |
|---|---|
BinaryInput()
Construct from nothing. |
|
| Method Summary | |
|---|---|
protected abstract void |
calculateLength()
|
protected void |
closeStream()
Close the stream |
void |
discard()
Discard the object |
void |
doneWithStream()
Close the stream we passed to JDBC |
long |
getLength()
Obtain the length to pass to JDBC |
java.io.InputStream |
getStream()
Obtain the stream to pass to JDBC |
protected abstract void |
openStream()
|
abstract BinaryInput |
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.InputStream stream
protected long length
| Constructor Detail |
|---|
public BinaryInput()
| Method Detail |
|---|
public java.io.InputStream getStream()
throws ManifoldCFException
ManifoldCFException
public long getLength()
throws ManifoldCFException
ManifoldCFException
public void doneWithStream()
throws ManifoldCFException
ManifoldCFExceptionpublic abstract BinaryInput transfer()
public void discard()
throws ManifoldCFException
ManifoldCFException
protected abstract void openStream()
throws ManifoldCFException
ManifoldCFException
protected abstract void calculateLength()
throws ManifoldCFException
ManifoldCFException
protected void closeStream()
throws ManifoldCFException
ManifoldCFException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||