Class FileSystemBlobStoreDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.blobstore.business.filesystem.FileSystemBlobStoreDAO
-
- All Implemented Interfaces:
fr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO
public class FileSystemBlobStoreDAO extends java.lang.Object implements fr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAOUses filesystem to store blob. Note thatstrBasePathis the path were blobs are put.
-
-
Constructor Summary
Constructors Constructor Description FileSystemBlobStoreDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandelete(java.lang.String strKey, java.lang.String strBasePath, java.lang.Integer depth)voidinsert(fr.paris.lutece.plugins.blobstore.business.BytesBlobStore blobStore, java.lang.String strBasePath, java.lang.Integer depth)voidinsert(fr.paris.lutece.plugins.blobstore.business.InputStreamBlobStore blobStore, java.lang.String strBasePath, java.lang.Integer depth)fr.paris.lutece.plugins.blobstore.business.BytesBlobStoreload(java.lang.String strId, java.lang.String strBasePath, java.lang.Integer depth)java.io.InputStreamloadInputStream(java.lang.String strId, java.lang.String strBasePath, java.lang.Integer depth)voidstore(fr.paris.lutece.plugins.blobstore.business.BytesBlobStore blobStore, java.lang.String strBasePath, java.lang.Integer depth)voidstoreInputStream(fr.paris.lutece.plugins.blobstore.business.InputStreamBlobStore blobStore, java.lang.String strBasePath, java.lang.Integer depth)
-
-
-
Method Detail
-
delete
public boolean delete(java.lang.String strKey, java.lang.String strBasePath, java.lang.Integer depth) throws java.io.IOException- Specified by:
deletein interfacefr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO- Throws:
java.io.IOException
-
insert
public void insert(fr.paris.lutece.plugins.blobstore.business.BytesBlobStore blobStore, java.lang.String strBasePath, java.lang.Integer depth) throws java.io.IOException, fr.paris.lutece.plugins.blobstore.business.filesystem.FileAlreadyExistsException- Specified by:
insertin interfacefr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO- Throws:
java.io.IOExceptionfr.paris.lutece.plugins.blobstore.business.filesystem.FileAlreadyExistsException
-
insert
public void insert(fr.paris.lutece.plugins.blobstore.business.InputStreamBlobStore blobStore, java.lang.String strBasePath, java.lang.Integer depth) throws fr.paris.lutece.plugins.blobstore.business.filesystem.FileAlreadyExistsException, java.io.IOException- Specified by:
insertin interfacefr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO- Throws:
fr.paris.lutece.plugins.blobstore.business.filesystem.FileAlreadyExistsExceptionjava.io.IOException
-
load
public fr.paris.lutece.plugins.blobstore.business.BytesBlobStore load(java.lang.String strId, java.lang.String strBasePath, java.lang.Integer depth) throws java.io.IOException- Specified by:
loadin interfacefr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO- Throws:
java.io.IOException
-
loadInputStream
public java.io.InputStream loadInputStream(java.lang.String strId, java.lang.String strBasePath, java.lang.Integer depth) throws java.io.IOException- Specified by:
loadInputStreamin interfacefr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO- Throws:
java.io.IOException
-
store
public void store(fr.paris.lutece.plugins.blobstore.business.BytesBlobStore blobStore, java.lang.String strBasePath, java.lang.Integer depth) throws java.io.IOException- Specified by:
storein interfacefr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO- Throws:
java.io.IOException
-
storeInputStream
public void storeInputStream(fr.paris.lutece.plugins.blobstore.business.InputStreamBlobStore blobStore, java.lang.String strBasePath, java.lang.Integer depth) throws java.io.IOException- Specified by:
storeInputStreamin interfacefr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO- Throws:
java.io.IOException
-
-