- All Known Implementing Classes:
MockFileStore
public interface FileStore
A file store interface.
- Author:
- Alex Bogdanovski [[email protected]]
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Deletes a file.Loads a file from a storage service.store
(String path, InputStream data) Saves a file to a storage service.
-
Method Details
-
load
Loads a file from a storage service.- Parameters:
path
- the relative file path- Returns:
- the file stream or null if not found
-
store
Saves a file to a storage service.- Parameters:
path
- the relative file pathdata
- the contents of the file- Returns:
- the full path to the file or the URL, null if unsuccessful
-
delete
Deletes a file.- Parameters:
path
- the relative file path- Returns:
- true if successful
-