Interface IResourceRetriever
- All Known Subinterfaces:
-
IAdvancedResourceRetriever
- All Known Implementing Classes:
-
DefaultResourceRetriever
public interface IResourceRetriever
Interface for classes that can retrieve data from resources by URL.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]getByteArrayByUrl(URL url) Gets the byte array with the data from a provided URL by instantiating an HTTP connection to the URL.getInputStreamByUrl(URL url) Gets theInputStreamwith the data from a provided URL by instantiating an HTTP connection to the URL.
-
Method Details
-
getInputStreamByUrl
Gets theInputStreamwith the data from a provided URL by instantiating an HTTP connection to the URL.- Parameters:
-
url- the source URL - Returns:
- the input stream with the retrieved data
- Throws:
-
IOException- if any input/output issue occurs
-
getByteArrayByUrl
Gets the byte array with the data from a provided URL by instantiating an HTTP connection to the URL.- Parameters:
-
url- the source URL - Returns:
- the byte array with the retrieved data
- Throws:
-
IOException- if any input/output issue occurs
-