|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mockrunner.util.common.FileUtil
public class FileUtil
| Constructor Summary | |
|---|---|
FileUtil()
|
|
| Method Summary | |
|---|---|
static java.io.File |
findFile(java.lang.String fileName)
Tries to open the file from its absolute or relative path. |
static java.util.List |
getLinesFromFile(java.io.File file)
Reads all lines from a text file and adds them to a List. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileUtil()
| Method Detail |
|---|
public static java.util.List getLinesFromFile(java.io.File file)
List.
file - the input file
List with the file lines
public static java.io.File findFile(java.lang.String fileName)
throws java.io.FileNotFoundException
getResource.
Throws a FileNotFoundException if the file cannot be found.
fileName - the file name
java.io.FileNotFoundException - if the cannot be found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||