Package org.nuxeo.ecm.core.storage.sql
Class S3BinaryManager.S3FileStorage
- java.lang.Object
-
- org.nuxeo.ecm.core.storage.sql.S3BinaryManager.S3FileStorage
-
- All Implemented Interfaces:
FileStorage
- Enclosing class:
- S3BinaryManager
public class S3BinaryManager.S3FileStorage extends Object implements FileStorage
-
-
Constructor Summary
Constructors Constructor Description S3FileStorage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfetchFile(String digest, File file)Fetches a file based on its key.voidstoreFile(String digest, File file)Stores a file based on a key.
-
-
-
Constructor Detail
-
S3FileStorage
public S3FileStorage()
-
-
Method Detail
-
storeFile
public void storeFile(String digest, File file) throws IOException
Description copied from interface:FileStorageStores a file based on a key.- Specified by:
storeFilein interfaceFileStorage- Parameters:
digest- the file keyfile- the file- Throws:
IOException- if a storage error occurred
-
fetchFile
public boolean fetchFile(String digest, File file) throws IOException
Description copied from interface:FileStorageFetches a file based on its key.- Specified by:
fetchFilein interfaceFileStorage- Parameters:
digest- the file keyfile- the file to use to store the fetched data- Returns:
trueif the file was fetched,falseif the file was not found- Throws:
IOException- if a storage error occurred
-
-