|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agimatec.commons.util.ResourceUtils
public class ResourceUtils
Description:
User: roman.stumm
Date: 29.03.2010
Time: 11:23:03
viaboxx GmbH, 2010
| Constructor Summary | |
|---|---|
ResourceUtils()
|
|
| Method Summary | |
|---|---|
static Collection<String> |
getResources(String resourceDir)
|
static Collection<String> |
getURLResources(URL dirURL)
Reads the URL contents into a list, can read jars (jar:file:path! |
static List<String> |
readLines(BufferedReader reader)
Reads the reader into a list of Strings, with one entry for each line. |
static List<String> |
readLines(URL url)
Reads the URL contents into a list, with one element for each line. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceUtils()
| Method Detail |
|---|
public static List<String> readLines(URL url)
throws IOException
url - a URL
IOException - if an IOException occurs.
public static List<String> readLines(BufferedReader reader)
throws IOException
reader - a Reader
IOException - if an IOException occurs.
public static Collection<String> getResources(String resourceDir)
throws IOException
IOException
public static Collection<String> getURLResources(URL dirURL)
throws IOException
dirURL - a URL (a jar or file)
IOException - if an IOException occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||