|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceLoader
Abstraction for loading resources (streams, files, and classes).
Method Summary | ||
---|---|---|
List<String> |
getLines(String resource)
Accesses a resource by name and returns the (non comment) lines containing data. |
|
|
newInstance(String cname,
Class<T> expectedType,
String... subpackages)
|
|
InputStream |
openResource(String resource)
|
Method Detail |
---|
InputStream openResource(String resource) throws IOException
IOException
List<String> getLines(String resource) throws IOException
A comment line is any line that starts with the character "#"
resource
-
IOException
<T> T newInstance(String cname, Class<T> expectedType, String... subpackages)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |