Interface IResourceRetriever
- 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 that are retrieved from the source URL.getInputStreamByUrl(URL url) Gets theInputStreamthat connect with source URL for retrieving data from that connection.
-
Method Details
-
getInputStreamByUrl
Gets theInputStreamthat connect with source URL for retrieving data from that connection.- Parameters:
-
url- the source URL - Returns:
- the input stream or null if the retrieving failed
- Throws:
-
IOException- if any input/output issue occurs
-
getByteArrayByUrl
Gets the byte array that are retrieved from the source URL.- Parameters:
-
url- the source URL - Returns:
- the byte array or null if the retrieving failed
- Throws:
-
IOException- if any input/output issue occurs
-