public class S3BinaryManager.S3FileStorage extends Object implements FileStorage
| Constructor and Description |
|---|
S3FileStorage() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
fetchFile(String digest,
File file)
Fetches a file based on its key.
|
Long |
fetchLength(String digest)
Fetches the length of a file based on its key.
|
void |
storeFile(String digest,
File file)
Stores a file based on a key.
|
public S3FileStorage()
public void storeFile(String digest, File file) throws IOException
FileStoragestoreFile in interface FileStoragedigest - the file keyfile - the fileIOException - if a storage error occurredpublic boolean fetchFile(String digest, File file) throws IOException
FileStoragefetchFile in interface FileStoragedigest - the file keyfile - the file to use to store the fetched datatrue if the file was fetched, false if the file was not foundIOException - if a storage error occurredpublic Long fetchLength(String digest) throws IOException
FileStoragefetchLength in interface FileStoragedigest - the file keynull if the file was not foundIOException - if a storage error occurredCopyright © 2016 Nuxeo SA. All rights reserved.