|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.blobstore.business.filesystem.FileSystemBlobStoreDAO
public class FileSystemBlobStoreDAO
Uses filesystem to store blob.
Note that strBasePath
is the path were blobs are put.
Constructor Summary | |
---|---|
FileSystemBlobStoreDAO()
|
Method Summary | |
---|---|
boolean |
delete(java.lang.String strKey,
java.lang.String strBasePath)
Removes the file |
void |
insert(BytesBlobStore blobStore,
java.lang.String strBasePath)
Inserts the blobStore |
void |
insert(InputStreamBlobStore blobStore,
java.lang.String strBasePath)
Inserts the InputStreamDatabaseBlobStore |
BytesBlobStore |
load(java.lang.String strId,
java.lang.String strBasePath)
Load the data from the table |
java.io.InputStream |
loadInputStream(java.lang.String strId,
java.lang.String strBasePath)
Loads the InputStreamDatabaseBlobStore |
void |
store(BytesBlobStore blobStore,
java.lang.String strBasePath)
Updates the file |
void |
storeInputStream(InputStreamBlobStore blobStore,
java.lang.String strBasePath)
Updates the file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileSystemBlobStoreDAO()
Method Detail |
---|
public void insert(BytesBlobStore blobStore, java.lang.String strBasePath) throws java.io.IOException, FileAlreadyExistsException
insert
in interface IFileSystemBlobStoreDAO
blobStore
- blobStorestrBasePath
- base directory
java.io.IOException
- ioexception
FileAlreadyExistsException
- if the file already existspublic void insert(InputStreamBlobStore blobStore, java.lang.String strBasePath) throws FileAlreadyExistsException, java.io.IOException
insert
in interface IFileSystemBlobStoreDAO
blobStore
- blobStorestrBasePath
- base directory
FileAlreadyExistsException
- if the file already exists
java.io.IOException
- ioexceptionpublic BytesBlobStore load(java.lang.String strId, java.lang.String strBasePath) throws java.io.IOException
load
in interface IFileSystemBlobStoreDAO
strId
- The identifierstrBasePath
- base directory
java.io.IOException
- ioexceptionpublic java.io.InputStream loadInputStream(java.lang.String strId, java.lang.String strBasePath) throws java.io.IOException
loadInputStream
in interface IFileSystemBlobStoreDAO
strId
- idstrBasePath
- base path
java.io.IOException
- ioexceptionpublic void store(BytesBlobStore blobStore, java.lang.String strBasePath) throws java.io.IOException
store
in interface IFileSystemBlobStoreDAO
blobStore
- the blobstrBasePath
- the base directory
java.io.IOException
- ioexceptionpublic void storeInputStream(InputStreamBlobStore blobStore, java.lang.String strBasePath) throws java.io.IOException
storeInputStream
in interface IFileSystemBlobStoreDAO
blobStore
- the blobstrBasePath
- the base directory
java.io.IOException
- ioexceptionpublic boolean delete(java.lang.String strKey, java.lang.String strBasePath) throws java.io.IOException
delete
in interface IFileSystemBlobStoreDAO
strKey
- the keystrBasePath
- the base directory
true
if the file is deleted, false
otherwise
java.io.IOException
- ioexception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |