|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.restdriver.serverdriver.file.FileHelper
public final class FileHelper
Utility class to help with loading files from the classpath. User: mjg Date: 21/04/11 Time: 11:51
| Method Summary | |
|---|---|
static String |
fromFile(String fileName)
Reads in a resource from the class path, using UTF-8 encoding. |
static String |
fromFile(String fileName,
String encoding)
Reads in a resource from the class path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String fromFile(String fileName,
String encoding)
fileName - The file name to loadencoding - The encoding to use when reading the file
public static String fromFile(String fileName)
fileName - The file name to load
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||