|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSciLib.Util.fileProcessing
public final class fileProcessing
This class contains some methods to read and write a text file.
| Constructor Summary | |
|---|---|
fileProcessing()
|
|
| Method Summary | |
|---|---|
static boolean |
exists(java.lang.String fileName)
check if a file exists |
static java.lang.String |
getReadFileName(java.awt.Frame parent)
get the file name for reading from the FileDialog |
static java.lang.String |
getWriteFileName(java.awt.Frame parent)
get the file name for writing from the FileDialog |
static java.lang.String |
read(java.lang.String fileName)
read data from a file and store it in a string |
static void |
write(java.lang.String fileName,
java.lang.String str)
write a data string to a file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public fileProcessing()
| Method Detail |
|---|
public static final void write(java.lang.String fileName,
java.lang.String str)
public static final java.lang.String read(java.lang.String fileName)
public static java.lang.String getReadFileName(java.awt.Frame parent)
parent - A frame window
public static java.lang.String getWriteFileName(java.awt.Frame parent)
parent - A frame window
public static boolean exists(java.lang.String fileName)
fileName - the file name, String
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||