|
||||||||||
| 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 java.util.Collection<java.lang.String> |
getResources(java.lang.String resourceDir)
|
static java.util.Collection<java.lang.String> |
getURLResources(java.net.URL dirURL)
Reads the URL contents into a list, can read jars (jar:file:path! |
static java.util.List<java.lang.String> |
readLines(java.io.BufferedReader reader)
Reads the reader into a list of Strings, with one entry for each line. |
static java.util.List<java.lang.String> |
readLines(java.net.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 java.util.List<java.lang.String> readLines(java.net.URL url)
throws java.io.IOException
url - a URL
java.io.IOException - if an IOException occurs.
public static java.util.List<java.lang.String> readLines(java.io.BufferedReader reader)
throws java.io.IOException
reader - a Reader
java.io.IOException - if an IOException occurs.
public static java.util.Collection<java.lang.String> getResources(java.lang.String resourceDir)
throws java.io.IOException
java.io.IOException
public static java.util.Collection<java.lang.String> getURLResources(java.net.URL dirURL)
throws java.io.IOException
dirURL - a URL (a jar or file)
java.io.IOException - if an IOException occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||