public interface BitStoreService
| Modifier and Type | Method and Description |
|---|---|
Map |
about(Bitstream bitstream,
Map attrs)
Obtain technical metadata about an asset in the asset store.
|
String |
generateId()
Return an identifier unique to this asset store instance
|
InputStream |
get(Bitstream bitstream)
Retrieve the bits for bitstream
|
void |
init()
Initialize the asset store
|
void |
put(Bitstream bitstream,
InputStream inputStream)
Store a stream of bits.
|
void |
remove(Bitstream bitstream)
Remove an asset from the asset store.
|
void init()
throws IOException
IOExceptionString generateId()
InputStream get(Bitstream bitstream) throws IOException
bitstream - IOException - If a problem occurs while retrieving the bits, or if no
asset with ID exists in the storevoid put(Bitstream bitstream, InputStream inputStream) throws IOException
If this method returns successfully, the bits have been stored. If an exception is thrown, the bits have not been stored.
bitstream - The bitsream objectinputStream - The stream of bitsIOException - If a problem occurs while storing the bitsMap about(Bitstream bitstream, Map attrs) throws IOException
bitstream - The bitstream to describeattrs - A Map whose keys consist of desired metadata fieldsIOException - If a problem occurs while obtaining metadatavoid remove(Bitstream bitstream) throws IOException
bitstream - The bitstream of the asset to deleteIOException - If a problem occurs while removing the assetCopyright © 2016 DuraSpace. All rights reserved.