|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectat.knowcenter.wag.egov.egiz.tools.FileHelper
This class provides file reader and writer methods. All methods are static!
| Constructor Summary | |
FileHelper()
|
|
| Method Summary | |
static String |
readFromFile(String fileName)
This method reads a file by reading line by line. |
static String |
readFromInputStream(InputStream inputStream)
This method reads a file by reading line by line. |
static boolean |
writeToFile(String fileName,
String fileString)
This method writes a file line by line. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileHelper()
| Method Detail |
public static String readFromFile(String fileName)
fileName - the file to be read
public static String readFromInputStream(InputStream inputStream)
public static boolean writeToFile(String fileName,
String fileString)
fileName - the file to be writtenfileString - the content to be written
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||