com.agimatec.commons.util
Class ResourceUtils
java.lang.Object
com.agimatec.commons.util.ResourceUtils
public class ResourceUtils
- extends Object
Description:
User: roman.stumm
Date: 29.03.2010
Time: 11:23:03
viaboxx GmbH, 2010
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceUtils
public ResourceUtils()
readLines
public static List<String> readLines(String path)
throws IOException
- Throws:
IOException
readLines
public static List<String> readLines(URL url)
throws IOException
- Reads the URL contents into a list, with one element for each line.
- Parameters:
url - a URL
- Returns:
- a List of lines
- Throws:
IOException - if an IOException occurs.- Since:
- 1.6.8
readLines
public static List<String> readLines(BufferedReader reader)
throws IOException
- Reads the reader into a list of Strings, with one entry for each line.
The reader is closed before this method returns.
- Parameters:
reader - a Reader
- Returns:
- a List of lines
- Throws:
IOException - if an IOException occurs.- Since:
- 1.0
Copyright © 2008-2011. All Rights Reserved.