Class DataRecordOperations

java.lang.Object
  extended by DataRecordOperations

public class DataRecordOperations
extends java.lang.Object

DataRecordOperations Class

This class is responsible for recording the various data operations, such as writing to files.

The Boolean variable "VERBOSE_DEBUG" displays debugging information for this class. Set value to "true" to display messages.

Version:
0.3 - Initial Release
Author:
Richard John Sproston [ richard.sproston@gmail.com || lucky_jackpot@hotmail.com ]

Constructor Summary
DataRecordOperations()
          Default Constructor for class, with no parameters
 
Method Summary
 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

DataRecordOperations

public DataRecordOperations()
Default Constructor for class, with no parameters

Method Detail

writeFile

public void writeFile(java.io.File fileObj,
                      java.lang.String document)
               throws java.io.IOException
This method is used to store (write) AI preview code to a file on disk. This is used either the first time a document is created (and no other files of the same name exist) or a "New Document" is created (with a document of the same name existing. [Determinations based on user-interactions from GUIFramework class.]

Parameters:
document - The text that is displayed in the generated AI file preview text-area.
Throws:
java.io.IOException - To be handled by GUIFramework