All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ibs.data.TableToDataFile

java.lang.Object
   |
   +----ibs.data.TableToDataFile

public class TableToDataFile
extends Object
Converts given IbsTable object to the datafile using specified data properties file.


Constructor Index

 o TableToDataFile()

Method Index

 o convert()
Converts given datatable to a datafile using data properties defined in the properties file (primarily delimiter - field separator).
 o main(String[])
This functionality is provided for diagnosis purpose only.
 o setAppendMode(boolean)
Set append mode/preference.
 o setDataFile(String, String)
Specify data file where IbsTable data should be written.
 o setLogStream(PrintWriter)
If you wish to log info, warning and error messages, set log stream.
 o setPropFile(String, String)
Specify data properties file to be used while converting IbsTable to a datafile.
 o setTable(IbsTable)
Set IbsTable object from which data should be converted to the datafile.

Constructors

 o TableToDataFile
 public TableToDataFile()

Methods

 o setTable
 public void setTable(IbsTable table)
Set IbsTable object from which data should be converted to the datafile.

Parameters:
table - An IbsTable object.
 o setDataFile
 public void setDataFile(String datafile_path,
                         String datafile_name)
Specify data file where IbsTable data should be written.

Parameters:
datafile_path - Path where data file should be written
datafile_name - Filename in which data should be written.
 o setPropFile
 public void setPropFile(String propfile_path,
                         String propfile_name)
Specify data properties file to be used while converting IbsTable to a datafile.

Parameters:
propfile_path - Path where properties file can be found.
propfile_name - Filename where data properties are defined.
 o setAppendMode
 public void setAppendMode(boolean append)
Set append mode/preference. Set append to 'true' if file already exists and you wish to append. 'false' otherwise.

WARNING: Unless you set append mode to 'true' by calling this method, system will overwrite existing file if it exists.

Parameters:
append - 'true' if you wish to append to the existing file. 'false' if you wish to overwrite the existing file (if it exists)
 o setLogStream
 public void setLogStream(PrintWriter pw)
If you wish to log info, warning and error messages, set log stream.

Parameters:
pw - A PrintWriter
 o convert
 public void convert() throws Exception
Converts given datatable to a datafile using data properties defined in the properties file (primarily delimiter - field separator).

 o main
 public static void main(String args[])
This functionality is provided for diagnosis purpose only.


All Packages  Class Hierarchy  This Package  Previous  Next  Index