|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbin.DataRecordOperations
public class DataRecordOperations
DataRecordOperations Class
This class is responsible for recording the various data operations, such as writing to files.
Constructor Summary | |
---|---|
DataRecordOperations()
Default Constructor for class, with no parameters |
Method Summary | |
---|---|
java.lang.String |
getTextDocument()
This method is used to retrieve the placeholder String that contains an AI file that was read into memory. |
void |
readFile(java.io.File fileObj)
This method is used to read the contents of an AI file and store the information as a String. |
void |
setTextDocument(java.lang.String textDocument)
After having read the contents of a file into memory, this method is responsible for creating a String variable to set (and hold) the contents. |
void |
writeFile(java.io.File fileObj,
java.lang.String document)
This method is used to store (write) AI preview code to a file on disk. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataRecordOperations()
Method Detail |
---|
public void setTextDocument(java.lang.String textDocument)
textDocument
- The String that is to set and hold
the read input AI file.public java.lang.String getTextDocument()
public void writeFile(java.io.File fileObj, java.lang.String document) throws java.io.IOException
document
- The text that is displayed in the generated
AI file preview text-area.
java.io.IOException
- To be handled by GUIFramework class.public void readFile(java.io.File fileObj) throws java.io.IOException
BufferedReader
to read through the plain-text file, compiling all the String
information it requires to "rebuild" the AI file, verbatim, and
uses the "setTextDocument (arg_value)" method to
store the String.
- Parameters:
fileObj
- The File object that refers to a file for reading.
- Throws:
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |