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.
-
TableToDataFile()
-
-
convert()
- Converts given datatable to a datafile using data properties defined
in the properties file (primarily delimiter - field separator).
-
main(String[])
- This functionality is provided for diagnosis purpose only.
-
setAppendMode(boolean)
- Set append mode/preference.
-
setDataFile(String, String)
- Specify data file where IbsTable data should be written.
-
setLogStream(PrintWriter)
- If you wish to log info, warning and error messages, set log stream.
-
setPropFile(String, String)
- Specify data properties file to be used while converting IbsTable
to a datafile.
-
setTable(IbsTable)
-
Set IbsTable object from which data should be converted to the datafile.
TableToDataFile
public TableToDataFile()
setTable
public void setTable(IbsTable table)
- Set IbsTable object from which data should be converted to the datafile.
- Parameters:
- table - An IbsTable object.
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.
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.
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)
setLogStream
public void setLogStream(PrintWriter pw)
- If you wish to log info, warning and error messages, set log stream.
- Parameters:
- pw - A PrintWriter
convert
public void convert() throws Exception
- Converts given datatable to a datafile using data properties defined
in the properties file (primarily delimiter - field separator).
main
public static void main(String args[])
- This functionality is provided for diagnosis purpose only.
All Packages Class Hierarchy This Package Previous Next Index