Interface FileStorageService
-
public interface FileStorageService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(String fileUniqueName, InputStream fileData)Add a filevoiddeleteAll(List<String> fileUniqueNames)Delete the files data identified by the fileUniqueNames.Optional<InputStream>fetch(String fileUniqueName)
-
-
-
Method Detail
-
add
void add(String fileUniqueName, InputStream fileData) throws IOException
Add a file- Parameters:
fileUniqueName- the file unique namefileData- the file input stream- Throws:
IOException
-
fetch
Optional<InputStream> fetch(String fileUniqueName)
-
deleteAll
void deleteAll(List<String> fileUniqueNames) throws IOException
Delete the files data identified by the fileUniqueNames. If a file is already deleted, no exception must be raised Must not fail if the files have already been deleted- Parameters:
fileUniqueNames- The unique names of the files that should be deleted- Throws:
IOException- is a file could not be deleted
-
-