|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--suncertify.db.tool.DataConvToolSwing
The class is the Data Conversion tool with a Swing GUI,and it converts the ascii file containing data about a DataBase to a binary file to be used by the Data class object.
Constructor Summary | |
DataConvToolSwing(javax.swing.JFrame frameArg)
The class constructor. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
The actionPerformed method to be called when the "Conversion" button is pressed. |
protected void |
createHeader()
The method creates the "header" of the DataBaseFile. |
protected void |
getFieldsInfo()
The method get the names of the fields and its corresponding Length and stores into two Vectors. |
protected void |
insertRecords()
The method inserts into the "outputDataBaseFile" the dataRecords fetched from the "DataFile". |
static void |
main(java.lang.String[] args)
The main method to create an instance of "DataConvTool" and initiate conversion. |
protected void |
nameFiles(java.io.File fieldsFile,
java.io.File dataFile,
java.io.File dbFile)
The Method to initialize the Variables for the file names. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DataConvToolSwing(javax.swing.JFrame frameArg)
frameArg
- : A JFrame that contains the main GUI of teh application.Method Detail |
protected void nameFiles(java.io.File fieldsFile, java.io.File dataFile, java.io.File dbFile) throws DataConversionException
fieldsFile
- : The File Object that represents the "fieldsFile"/
"SchemaFile"dataFile
- : The File Object that represents dataRecordsdbFile
- :The File Object that represents the "outputDataBaseFile"protected void getFieldsInfo() throws DataConversionException
protected void createHeader() throws DataConversionException
protected void insertRecords() throws DataConversionException
public static void main(java.lang.String[] args)
public void actionPerformed(java.awt.event.ActionEvent e)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |