public class FFOIFileFormatter extends OIFileFormatter
emptyFile, errMesg, logger, writer
Constructor and Description |
---|
FFOIFileFormatter(LoggerIfc logr,
OIFileWriter oiFileWriter,
boolean bAddHeader)
Construct a new
FFOIFileFormatter . |
Modifier and Type | Method and Description |
---|---|
void |
fileOpening(DCFieldContainer record)
Overrides OIFileFormatter.fileOpening().
|
void |
setFieldContainer(java.lang.String container)
Set the value used to 'wrap' the field values in the output file.
|
void |
setFieldDelimiter(java.lang.String delimiter)
Set the value used to separate the field values in the output file
|
void |
setOutputFields(java.util.ArrayList aList)
Set the String[] used to define the fields in the FFOIRecord.
|
void |
writeToFile(DCFieldContainer record)
This method will write the appropriately formatted data contained
within the DCFieldContainer to the output file.
|
fileClosing, getFileWriter, getFtpPusher, isHealthy, putToFile, readyToCycle, setFtpPusher, shutdown
public FFOIFileFormatter(LoggerIfc logr, OIFileWriter oiFileWriter, boolean bAddHeader)
FFOIFileFormatter
. The
OIFileWriter()
object will create the output files.logr
- LoggerIfc() object providing access to the
node's log fileoiFileWriter
- OIFileWriter() object responsible for file
output and managing the output files.bAddHeader
- Boolean flag to determine if adding header in
the output files.public void writeToFile(DCFieldContainer record) throws java.io.IOException
writeToFile
in class OIFileFormatter
java.io.IOException
public void fileOpening(DCFieldContainer record) throws java.io.IOException
fileOpening
in class OIFileFormatter
java.io.IOException
public void setFieldContainer(java.lang.String container)
public void setFieldDelimiter(java.lang.String delimiter)
public void setOutputFields(java.util.ArrayList aList)