|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceAccessor
Abstracts file access so they can be read in a variety of manners.
Method Summary | |
---|---|
Set<InputStream> |
getResourcesAsStream(String path)
Return an InputStream for each resource mapped by the given path. |
Set<String> |
list(String relativeTo,
String path,
boolean includeFiles,
boolean includeDirectories,
boolean recursive)
Returns the path to all resources contained in the given root. |
ClassLoader |
toClassLoader()
|
Method Detail |
---|
Set<InputStream> getResourcesAsStream(String path) throws IOException
IOException
- if there is an error reading an existing path.Set<String> list(String relativeTo, String path, boolean includeFiles, boolean includeDirectories, boolean recursive) throws IOException
includeFiles
- Set to false to exclude files in the returned set. Defaults to trueincludeDirectories
- Set to false to exclude directories in the returned set. Defaults to truerecursive
- Set to true and will return paths to contents in sub directories as well. Defaults to false
IOException
- if there is an error reading an existing root.ClassLoader toClassLoader()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |