|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlapisx.io.FileUtil
Constructor Summary | |
FileUtil()
|
Method Summary | |
static String |
load(File f)
Load a file into a string. |
static String |
load(InputStream in)
Load a stream into a string. |
static String |
load(Reader r)
Load a reader stream into a string. |
static void |
save(File f,
String s)
Save a file (represented as a string) to disk. |
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 String load(File f) throws IOException
f
- Filename to load
IOException
public static String load(InputStream in) throws IOException
in
- Stream to load
IOException
public static String load(Reader r) throws IOException
r
- Reader stream to load
IOException
public static void save(File f, String s) throws IOException
f
- Filename to saves
- Contents of file
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |