|
|||||||||
| Home >> All >> org >> jext >> dawn >> [ io overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jext.dawn.io
Class FileManager

java.lang.Objectorg.jext.dawn.io.FileManager
- public class FileManager
- extends java.lang.Object
Manages the files for the whole IO package.
This class provides functions to open/close files and
also to read/write into them. Each opened file is stored
as a property in DawnParser. Each file is
designed by a given ID.
| Field Summary | |
static java.lang.String |
NEW_LINE
Default line separator (system's one) used by the file manager. |
| Constructor Summary | |
FileManager()
|
|
| Method Summary | |
static void |
closeFile(java.lang.String ID,
org.jext.dawn.Function function,
org.jext.dawn.DawnParser parser)
Closes a given file. |
static boolean |
isFileAvailable(java.lang.String ID,
org.jext.dawn.DawnParser parser)
Checks if a given file is still available or not. |
static void |
openFileForInput(java.lang.String ID,
java.lang.String file,
org.jext.dawn.Function function,
org.jext.dawn.DawnParser parser)
Opens a file for input (i.e to read from it). |
static void |
openFileForOutput(java.lang.String ID,
java.lang.String file,
org.jext.dawn.Function function,
org.jext.dawn.DawnParser parser)
Opens a file for output (i.e to write into it). |
static java.lang.String |
read(boolean line,
java.lang.String ID,
org.jext.dawn.Function function,
org.jext.dawn.DawnParser parser)
Reads from a file according to the line parameter.. |
static java.lang.String |
read(java.lang.String ID,
org.jext.dawn.Function function,
org.jext.dawn.DawnParser parser)
Reads a character from a given file. |
static java.lang.String |
readLine(java.lang.String ID,
org.jext.dawn.Function function,
org.jext.dawn.DawnParser parser)
Reads a line from a given file. |
static void |
write(boolean isLine,
java.lang.String ID,
java.lang.String line,
org.jext.dawn.Function function,
org.jext.dawn.DawnParser parser)
Writes a line into a given file. |
static void |
write(java.lang.String ID,
java.lang.String line,
org.jext.dawn.Function function,
org.jext.dawn.DawnParser parser)
Writes a line into a given file (does not add a return char). |
static void |
writeLine(java.lang.String ID,
java.lang.String line,
org.jext.dawn.Function function,
org.jext.dawn.DawnParser parser)
Writes a line into a given file (write the text then adds a return char). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
NEW_LINE
public static final java.lang.String NEW_LINE
- Default line separator (system's one) used by the file manager.
| Constructor Detail |
FileManager
public FileManager()
| Method Detail |
openFileForInput
public static void openFileForInput(java.lang.String ID, java.lang.String file, org.jext.dawn.Function function, org.jext.dawn.DawnParser parser) throws org.jext.dawn.DawnRuntimeException
- Opens a file for input (i.e to read from it).
openFileForOutput
public static void openFileForOutput(java.lang.String ID, java.lang.String file, org.jext.dawn.Function function, org.jext.dawn.DawnParser parser) throws org.jext.dawn.DawnRuntimeException
- Opens a file for output (i.e to write into it).
readLine
public static java.lang.String readLine(java.lang.String ID, org.jext.dawn.Function function, org.jext.dawn.DawnParser parser) throws org.jext.dawn.DawnRuntimeException
- Reads a line from a given file.
read
public static java.lang.String read(java.lang.String ID, org.jext.dawn.Function function, org.jext.dawn.DawnParser parser) throws org.jext.dawn.DawnRuntimeException
- Reads a character from a given file.
read
public static java.lang.String read(boolean line, java.lang.String ID, org.jext.dawn.Function function, org.jext.dawn.DawnParser parser) throws org.jext.dawn.DawnRuntimeException
- Reads from a file according to the
lineparameter..
writeLine
public static void writeLine(java.lang.String ID, java.lang.String line, org.jext.dawn.Function function, org.jext.dawn.DawnParser parser) throws org.jext.dawn.DawnRuntimeException
- Writes a line into a given file (write the text then adds a return char).
write
public static void write(java.lang.String ID, java.lang.String line, org.jext.dawn.Function function, org.jext.dawn.DawnParser parser) throws org.jext.dawn.DawnRuntimeException
- Writes a line into a given file (does not add a return char).
write
public static void write(boolean isLine,
java.lang.String ID,
java.lang.String line,
org.jext.dawn.Function function,
org.jext.dawn.DawnParser parser)
throws org.jext.dawn.DawnRuntimeException
- Writes a line into a given file. The return char is added according to the
isLineparameter.
closeFile
public static void closeFile(java.lang.String ID, org.jext.dawn.Function function, org.jext.dawn.DawnParser parser) throws org.jext.dawn.DawnRuntimeException
- Closes a given file.
isFileAvailable
public static boolean isFileAvailable(java.lang.String ID, org.jext.dawn.DawnParser parser)
- Checks if a given file is still available or not.
|
|||||||||
| Home >> All >> org >> jext >> dawn >> [ io overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.jext.dawn.io.FileManager