|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.mockrunner.util.common.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 linespublic static java.io.File findFile(java.lang.String fileName)
getResource.
Returns null if the file cannot be found.
fileName - the file name
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||