Interface FileStorageService
public interface FileStorageService
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(String fileUniqueName, InputStream fileData) Add a filevoidDelete the files data identified by the fileUniqueNames.
-
Method Details
-
add
Add a file- Parameters:
fileUniqueName- the file unique namefileData- the file input stream- Throws:
IOException- is a file could not be stored
-
fetch
-
deleteAll
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
-