public abstract class BinaryInput extends PersistentDatabaseObject
| Modifier and Type | Field and Description |
|---|---|
static String |
_rcsid |
protected long |
length |
protected InputStream |
stream |
| Constructor and Description |
|---|
BinaryInput()
Construct from nothing.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
InputStream |
getStream()
Obtain the stream to pass to JDBC
|
protected static void |
handleIOException(IOException e,
String context) |
protected abstract void |
openStream() |
abstract BinaryInput |
transfer()
Transfer to a new object; this causes the current object to become "already discarded"
|
public static final String _rcsid
protected InputStream stream
protected long length
public InputStream getStream() throws ManifoldCFException
ManifoldCFExceptionpublic long getLength()
throws ManifoldCFException
ManifoldCFExceptionpublic void doneWithStream()
throws ManifoldCFException
doneWithStream in class PersistentDatabaseObjectManifoldCFExceptionpublic abstract BinaryInput transfer()
public void discard()
throws ManifoldCFException
discard in class PersistentDatabaseObjectManifoldCFExceptionprotected abstract void openStream()
throws ManifoldCFException
ManifoldCFExceptionprotected abstract void calculateLength()
throws ManifoldCFException
ManifoldCFExceptionprotected void closeStream()
throws ManifoldCFException
ManifoldCFExceptionprotected static void handleIOException(IOException e, String context) throws ManifoldCFException
ManifoldCFException