|
||||||||||
| 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 IFileSystemBlobStoreDAOblobStore - blobStorestrBasePath - base directory
java.io.IOException - ioexception
FileAlreadyExistsException - if the file already exists
public void insert(InputStreamBlobStore blobStore,
java.lang.String strBasePath)
throws FileAlreadyExistsException,
java.io.IOException
insert in interface IFileSystemBlobStoreDAOblobStore - blobStorestrBasePath - base directory
FileAlreadyExistsException - if the file already exists
java.io.IOException - ioexception
public BytesBlobStore load(java.lang.String strId,
java.lang.String strBasePath)
throws java.io.IOException
load in interface IFileSystemBlobStoreDAOstrId - The identifierstrBasePath - base directory
java.io.IOException - ioexception
public java.io.InputStream loadInputStream(java.lang.String strId,
java.lang.String strBasePath)
throws java.io.IOException
loadInputStream in interface IFileSystemBlobStoreDAOstrId - idstrBasePath - base path
java.io.IOException - ioexception
public void store(BytesBlobStore blobStore,
java.lang.String strBasePath)
throws java.io.IOException
store in interface IFileSystemBlobStoreDAOblobStore - the blobstrBasePath - the base directory
java.io.IOException - ioexception
public void storeInputStream(InputStreamBlobStore blobStore,
java.lang.String strBasePath)
throws java.io.IOException
storeInputStream in interface IFileSystemBlobStoreDAOblobStore - the blobstrBasePath - the base directory
java.io.IOException - ioexception
public boolean delete(java.lang.String strKey,
java.lang.String strBasePath)
throws java.io.IOException
delete in interface IFileSystemBlobStoreDAOstrKey - 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 | |||||||||