public class ResourceUtils extends Object
| Constructor and Description |
|---|
ResourceUtils() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static List<String> readLines(URL url) throws IOException
url - a URLIOException - if an IOException occurs.public static List<String> readLines(BufferedReader reader) throws IOException
reader - a ReaderIOException - if an IOException occurs.public static Collection<String> getResources(String resourceDir) throws IOException
IOExceptionpublic static Collection<String> getURLResources(URL dirURL) throws IOException
dirURL - a URL (a jar or file)IOException - if an IOException occurs.Copyright © 2008–2018. All rights reserved.