gov.nih.nci.caarray.services.fileparse2.parsers
Class DelimitedFileWriter
java.lang.Object
gov.nih.nci.caarray.services.fileparse2.parsers.DelimitedFileWriter
public class DelimitedFileWriter
- extends java.lang.Object
- Author:
- tranp
Constructor Summary |
DelimitedFileWriter(java.lang.String outputFileName,
java.lang.String[] columnNames)
|
DelimitedFileWriter(java.lang.String outputFileName,
java.lang.String[] columnNames,
java.lang.String columnDelimiter)
|
Method Summary |
void |
close()
Close the output file stream and finish writing. |
void |
write(java.lang.Object[] recordValues)
Write a single record/row which values are written in the same order as
they are in the specified array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelimitedFileWriter
public DelimitedFileWriter(java.lang.String outputFileName,
java.lang.String[] columnNames)
throws java.io.IOException
- Parameters:
columnNames
- - The array of column names based on which the
order of their output is determined. The column names must match the properties
of the row beans returned by the getDataTable().getRows() call on the
specified dataSet
or an empty string is written for the
unmatched column name.
- Throws:
java.io.IOException
DelimitedFileWriter
public DelimitedFileWriter(java.lang.String outputFileName,
java.lang.String[] columnNames,
java.lang.String columnDelimiter)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(java.lang.Object[] recordValues)
throws java.io.IOException
- Write a single record/row which values are written in the same order as
they are in the specified array.
- Parameters:
recordValues
- - The array of values which length must be the same
as the column names that this instance was constructed with.
- Throws:
java.io.IOException
close
public void close()
- Close the output file stream and finish writing.