public interface ResourceLoader
| Modifier and Type | Method and Description |
|---|---|
<T> T |
load(InputStream inputStream,
Class<T> clazz)
Creates a new instance of T based on the contents read from the specified
InputStream. |
<T> T |
load(URL url,
Class<T> clazz)
Creates a new instance of T based on the contents retrieved from the specified
URL. |
<T> T load(URL url, Class<T> clazz)
URL.url - URL defining the returned objectclazz - generic class to defined by the supplied configuration<T> T load(InputStream inputStream, Class<T> clazz)
InputStream.inputStream - InputStreamclazz - generic class to defined by the supplied configuration