|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ebi.adfconverter.common.tools.file.writer.DataFileWriter
This class converts data in memory in a file for output
DataTable| Constructor Summary | |
DataFileWriter(java.io.File aFile)
constructor for converting a data table in a data file |
|
DataFileWriter(java.io.File aFile,
boolean hasHeader)
constructor for converting a data table in data file in memory |
|
| Method Summary | |
void |
containsHeader(boolean _header)
Sets the indicator for header row. |
void |
doOverwrite(boolean _overwrite)
Sets, if file exists, if the writer over write the existing file |
DataTable |
horizontalToVerticalTable(DataTable table)
ConvertTable from a given table in the correct data orientation |
void |
writeData(DataTable table)
Writes data in file |
void |
writeData(DataTable table,
java.lang.String enc,
java.lang.String delimiter,
java.lang.String escape,
int orientation,
int type)
write data into file with a specific character encoding |
void |
writeHorizontalDataTable(DataTable table,
java.lang.String enc,
java.lang.String delimiter,
java.lang.String escape)
Writes data into a file with a specific character encoding in a Horizontal orientation of data |
void |
writeHorizontalDataTable(DataTable table,
java.lang.String enc,
java.lang.String delimiter,
java.lang.String escape,
int type)
Retrieves data from file with a specific character encoding in a horizontal orientation of data |
void |
writeVerticalDataTable(DataTable table,
java.lang.String enc,
java.lang.String delimiter,
java.lang.String escape)
Write a data into a file with a specific character encoding in a vertical orientation of data |
void |
writeVerticalDataTable(DataTable table,
java.lang.String enc,
java.lang.String delimiter,
java.lang.String escape,
int type)
Write data into a file with a specific character encoding in a vertical orientation of data |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataFileWriter(java.io.File aFile)
aFile - a file object of a file containing data
public DataFileWriter(java.io.File aFile,
boolean hasHeader)
aFile - a file object of a file containing datahasHeader - a boolean indicating, if the user want to print the header| Method Detail |
public void containsHeader(boolean _header)
_header - True if the table contains a header row. False, otherwise.public void doOverwrite(boolean _overwrite)
_overwrite - true if overwriting, false otherwisepublic DataTable horizontalToVerticalTable(DataTable table)
table - the table to change orientation
public void writeData(DataTable table)
throws java.io.IOException
table - the table to write in a file
IOException, - if error during access to the file.
java.io.IOException
public void writeData(DataTable table,
java.lang.String enc,
java.lang.String delimiter,
java.lang.String escape,
int orientation,
int type)
throws java.io.IOException
table - the table to write into a fileenc - a character encodingdelimiter - the delimiter string in a row (line)escape - the escape string of a row in the fileorientation - the table orientationtype - the table type
java.io.IOException - if an errors occurs during data writing.http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html
public void writeHorizontalDataTable(DataTable table,
java.lang.String enc,
java.lang.String delimiter,
java.lang.String escape)
throws java.io.IOException
table - dat table to writeenc - a character encodingdelimiter - the delimiter string in a row (line)escape - the escape string of a row in the file
java.io.IOException - if an errors occurs during data writing.
public void writeHorizontalDataTable(DataTable table,
java.lang.String enc,
java.lang.String delimiter,
java.lang.String escape,
int type)
throws java.io.IOException
table - dat table to writeenc - a character encodingdelimiter - the delimiter string in a row (line)escape - the escape string of a row in the filetype - the type of the data file
java.io.IOException - if an errors occurs during data writing.DataTable
public void writeVerticalDataTable(DataTable table,
java.lang.String enc,
java.lang.String delimiter,
java.lang.String escape)
throws java.io.IOException
table - dat table to writeenc - a character encodingdelimiter - the delimiter string in a row (line)escape - the escape string of a row in the file
java.io.IOException - if an errors occurs during data writing.
public void writeVerticalDataTable(DataTable table,
java.lang.String enc,
java.lang.String delimiter,
java.lang.String escape,
int type)
throws java.io.IOException
table - dat table to writeenc - a character encodingdelimiter - the delimiter string in a row (line)escape - the escape string of a row in the filetype - the type of the data file
java.io.IOException - if an errors occurs during data writing.DataTable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||