public class JCloudsBinaryManager.JCloudsFileStorage extends Object implements FileStorage
Constructor and Description |
---|
JCloudsBinaryManager.JCloudsFileStorage() |
public JCloudsBinaryManager.JCloudsFileStorage()
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 tmp)
FileStorage
fetchFile
in interface FileStorage
digest
- the file keytmp
- the file to use to store the fetched datatrue
if the file was fetched, false
if the file
was not foundpublic Long fetchLength(String digest)
FileStorage
fetchLength
in interface FileStorage
digest
- the file keynull
if the file was not foundCopyright © 2014 Nuxeo SA. All rights reserved.