|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.contentmanagement.baselayer.BaseLayerStream
org.gcube.contentmanagement.baselayer.rdbmsImpl.BlobStream
public class BlobStream
This class implements a wrapper to access Blob fields as input streams with known size.
| Field Summary |
|---|
| Fields inherited from class org.gcube.contentmanagement.baselayer.BaseLayerStream |
|---|
END_OF_STREAM, NO_LIMIT, STREAM_LENGTH_IMPLICITE, URL_CONNECTION_LENGTH_UNKNOWN |
| Constructor Summary | |
|---|---|
BlobStream(java.sql.Blob blob,
java.sql.Connection connection)
Creates new BlobStream |
|
| Method Summary | |
|---|---|
void |
dispose()
Closes the BaseLayerStream which implies that all bound resources should be freed. |
| Methods inherited from class org.gcube.contentmanagement.baselayer.BaseLayerStream |
|---|
getBufferedStream, getBufferSize, getDefaultBufferSize, getLength, getLimit, getStream, handleStartOffset, hasImpliciteLength, isBuffered, needsLimitTreatment, setBuffered, setBufferSize, setDefaultBufferSize, setLimit, setLimit, toFixedLengthStream, writeToStreamRespectingLimit |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlobStream(java.sql.Blob blob,
java.sql.Connection connection)
throws BaseLayerException
blob - the database BLOBconnection - the connection to access the BLOB
BaseLayerException - if something goes wrong| Method Detail |
|---|
public void dispose()
throws BaseLayerException
dispose in class BaseLayerStreamBaseLayerException - if something goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||