public class S3BinaryManager.S3FileStorage extends Object implements FileStorage
Constructor and Description |
---|
S3BinaryManager.S3FileStorage() |
public void storeFile(String digest, File file) throws IOException
FileStorage
storeFile
in interface FileStorage
digest
- the file keyfile
- the fileIOException
- if a storage error occurredpublic boolean fetchFile(String digest, File file) throws IOException
FileStorage
fetchFile
in interface FileStorage
digest
- 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
FileStorage
fetchLength
in interface FileStorage
digest
- the file keynull
if the file was not foundIOException
- if a storage error occurredCopyright © 2014 Nuxeo SA. All rights reserved.