|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteasik.sketch.util.Export.Text.SQLFileBuilder
public class SQLFileBuilder
Class to generate a SQL text file for exportation by the user. Deals only with fileIO and no formatting of SQL strings.
Field Summary | |
---|---|
private java.io.RandomAccessFile |
_raf
The RandomAccessFile used to access the file |
private java.io.File |
_selFile
The file selected by the user to save the text file to |
Constructor Summary | |
---|---|
SQLFileBuilder(ExportHandler sh)
Create a new SQLFileBuilder from the current sketch. |
Method Summary | |
---|---|
private boolean |
closeFile()
Closes the currently open file |
private boolean |
createFile()
Class to create a new file with the provided name. |
private boolean |
openFile()
Opens newly created file for reading/writing. |
boolean |
writeToFile(java.lang.String s)
Appends a string to the end of a file, as a sequence of 2-byte characters, high byte first. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.io.File _selFile
private java.io.RandomAccessFile _raf
Constructor Detail |
---|
public SQLFileBuilder(ExportHandler sh)
sh
- The ExportHandler used to build the information from the XML fileMethod Detail |
---|
private boolean createFile()
private boolean openFile()
public boolean writeToFile(java.lang.String s)
s
- The string that is to be written to the file.
private boolean closeFile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |