Package org.nuxeo.ecm.core.blob.binary
Interface FileStorage
- 
- All Known Implementing Classes:
- AzureFileStorage,- GoogleStorageBinaryManager.GCPFileStorage,- S3BinaryManager.S3FileStorage
 
 public interface FileStorageInterface to store a file or fetch a file or its length.- Since:
- 5.9.2
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanexists(String key)Does a blob with the given key exist in the storage.booleanfetchFile(String key, File file)Fetches a file based on its key.voidstoreFile(String key, File file)Stores a file based on a key.
 
- 
- 
- 
Method Detail- 
storeFilevoid storeFile(String key, File file) throws IOException Stores a file based on a key.- Parameters:
- key- the file key
- file- the file
- Throws:
- IOException- if a storage error occurred
 
 - 
fetchFileboolean fetchFile(String key, File file) throws IOException Fetches a file based on its key.- Parameters:
- key- the file key
- file- 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
 
 - 
existsdefault boolean exists(String key) Does a blob with the given key exist in the storage.The existence of the blob is checked in the storage where the blob is effectively stored. Intermediate cache is ignored. - Parameters:
- key- the blob key
- Returns:
- true if it exists in the storage
- Since:
- 2023
 
 
- 
 
-