Script
Class Txt2MySQL

java.lang.Object
  extended by Script.Txt2MySQL

public class Txt2MySQL
extends java.lang.Object

Script for converting feature data from a text file to a MySQL DB.


Constructor Summary
Txt2MySQL(java.lang.String file, java.lang.String usr, java.lang.String pwd, java.lang.String db, java.lang.String table)
          Basic constructor.
 
Method Summary
 boolean textToSql()
          Inserts all images of the text DB into the MySQL DB.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Txt2MySQL

public Txt2MySQL(java.lang.String file,
                 java.lang.String usr,
                 java.lang.String pwd,
                 java.lang.String db,
                 java.lang.String table)
Basic constructor.

Parameters:
file - Path of the text file containing the features.
usr - Username for the DB connection.
pwd - Password for the DB connection.
db - Name of the features database.
table - Name of the features table.
Method Detail

textToSql

public boolean textToSql()
Inserts all images of the text DB into the MySQL DB.

Returns:
true if all images were successfully inserted, false otherwise.