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
ManifoldCFException
public long getLength() throws ManifoldCFException
ManifoldCFException
public void doneWithStream() throws ManifoldCFException
doneWithStream
in class PersistentDatabaseObject
ManifoldCFException
public abstract BinaryInput transfer()
public void discard() throws ManifoldCFException
discard
in class PersistentDatabaseObject
ManifoldCFException
protected abstract void openStream() throws ManifoldCFException
ManifoldCFException
protected abstract void calculateLength() throws ManifoldCFException
ManifoldCFException
protected void closeStream() throws ManifoldCFException
ManifoldCFException
protected static void handleIOException(IOException e, String context) throws ManifoldCFException
ManifoldCFException