|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.binarystorage.persistence.BinaryPersistence
public abstract class BinaryPersistence
Abstract binary persistence class. This class shall be extended by all concrete binary storage implementation classes.
| Constructor Summary | |
|---|---|
BinaryPersistence()
|
|
| Method Summary | |
|---|---|
abstract void |
cleanup()
Release resources and performs cleanup actions. |
abstract void |
deleteBinary(java.lang.String key)
Delete binary data by key from binary storage. |
abstract long |
fetchSize(java.lang.String key)
Fetch record size. |
abstract byte[] |
loadBinaryAsByteArray(java.lang.String key)
Fetch binary data by key from binary storage. |
abstract java.io.InputStream |
loadBinaryAsInputStream(java.lang.String key)
Fetch binary data by key from binary storage. |
abstract void |
storeBinary(java.lang.String key,
byte[] content)
Store binary data in binary storage. |
abstract void |
storeBinary(java.lang.String key,
java.io.InputStream stream)
Store binary data in binary storage. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryPersistence()
| Method Detail |
|---|
public abstract void storeBinary(java.lang.String key,
java.io.InputStream stream)
throws BinaryStorageException
key - String - unique identifier inside of binary storagestream - InputStream - binary data input stream
BinaryStorageException - -
in case of any exception occurs
public abstract void storeBinary(java.lang.String key,
byte[] content)
throws BinaryStorageException
key - String - unique identifier inside of binary storagecontent - byte[] - binary content
BinaryStorageException - -
in case of any exception occurs
public abstract byte[] loadBinaryAsByteArray(java.lang.String key)
throws BinaryStorageException
key - String - unique identifier inside of binary storage
BinaryStorageException - -
in case of any exception occurs
public abstract java.io.InputStream loadBinaryAsInputStream(java.lang.String key)
throws BinaryStorageException
key - String - unique identifier inside of binary storage
BinaryStorageException - -
in case of any exception occurs
public abstract void deleteBinary(java.lang.String key)
throws BinaryStorageException
key - String - unique identifier inside of binary storage
BinaryStorageException - -
in case of any exception occurs
public abstract long fetchSize(java.lang.String key)
throws BinaryStorageException
key - String - unique identifier inside of binary storage
BinaryStorageException - - in case of any exception occurs
public abstract void cleanup()
throws BinaryStorageException
BinaryStorageException - in case of any exception
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||