Interface FileDownloader
- All Known Implementing Classes:
LocalFilesystem,S3Protocol
public interface FileDownloader
An interface for classes capable of loading a file located at a certain URI and return it as a String.
-
Method Summary
-
Method Details
-
download
Retrieves a file from the location specified in the URI and returns it as a String.- Parameters:
uri- A URI. Must not be null- Returns:
- a String with the contents of the file
- Throws:
IOException- if any issue occurs during the retrieval of the file
-