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 Object
implements fr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO
Uses filesystem to store blob. Note that
strBasePath is the path were blobs are put.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidinsert(fr.paris.lutece.plugins.blobstore.business.BytesBlobStore blobStore, String strBasePath, Integer depth) voidinsert(fr.paris.lutece.plugins.blobstore.business.InputStreamBlobStore blobStore, String strBasePath, Integer depth) fr.paris.lutece.plugins.blobstore.business.BytesBlobStoreloadInputStream(String strId, String strBasePath, Integer depth) voidstore(fr.paris.lutece.plugins.blobstore.business.BytesBlobStore blobStore, String strBasePath, Integer depth) voidstoreInputStream(fr.paris.lutece.plugins.blobstore.business.InputStreamBlobStore blobStore, String strBasePath, Integer depth)
-
Constructor Details
-
FileSystemBlobStoreDAO
public FileSystemBlobStoreDAO()
-
-
Method Details
-
delete
- Specified by:
deletein interfacefr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO- Throws:
IOException
-
insert
public void insert(fr.paris.lutece.plugins.blobstore.business.BytesBlobStore blobStore, String strBasePath, Integer depth) throws IOException, fr.paris.lutece.plugins.blobstore.business.filesystem.FileAlreadyExistsException - Specified by:
insertin interfacefr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO- Throws:
IOExceptionfr.paris.lutece.plugins.blobstore.business.filesystem.FileAlreadyExistsException
-
insert
public void insert(fr.paris.lutece.plugins.blobstore.business.InputStreamBlobStore blobStore, String strBasePath, Integer depth) throws fr.paris.lutece.plugins.blobstore.business.filesystem.FileAlreadyExistsException, IOException - Specified by:
insertin interfacefr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO- Throws:
fr.paris.lutece.plugins.blobstore.business.filesystem.FileAlreadyExistsExceptionIOException
-
load
public fr.paris.lutece.plugins.blobstore.business.BytesBlobStore load(String strId, String strBasePath, Integer depth) throws IOException - Specified by:
loadin interfacefr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO- Throws:
IOException
-
loadInputStream
public InputStream loadInputStream(String strId, String strBasePath, Integer depth) throws IOException - Specified by:
loadInputStreamin interfacefr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO- Throws:
IOException
-
store
public void store(fr.paris.lutece.plugins.blobstore.business.BytesBlobStore blobStore, String strBasePath, Integer depth) throws IOException - Specified by:
storein interfacefr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO- Throws:
IOException
-
storeInputStream
public void storeInputStream(fr.paris.lutece.plugins.blobstore.business.InputStreamBlobStore blobStore, String strBasePath, Integer depth) throws IOException - Specified by:
storeInputStreamin interfacefr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO- Throws:
IOException
-