public abstract class XMLOIFormatter extends OIFileFormatter
emptyFile, errMesg, logger, writer
Constructor and Description |
---|
XMLOIFormatter(LoggerIfc logr,
OIFileWriter oiFileWriter)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
fileClosing(DCFieldContainer rec)
This is a callback from the base-class.
|
void |
fileOpening(DCFieldContainer rec)
This is a callback from the base-class.
|
protected abstract java.lang.String |
getRecordString(DCFieldContainer record) |
void |
writeToFile(DCFieldContainer record)
This method will write the appropriately formatted data
contained within the DCFieldContainer to the output file.
|
getFileWriter, getFtpPusher, isHealthy, putToFile, readyToCycle, setFtpPusher, shutdown
public XMLOIFormatter(LoggerIfc logr, OIFileWriter oiFileWriter)
logr
- LoggerIfc() object providing access to
the node's log fileoiFileWriter
- OIFileWriter() object responsible for
file output and managing the output
files.public void writeToFile(DCFieldContainer record) throws java.io.IOException
writeToFile
in class OIFileFormatter
java.io.IOException
public void fileOpening(DCFieldContainer rec)
fileOpening
in class OIFileFormatter
public void fileClosing(DCFieldContainer rec)
fileClosing
in class OIFileFormatter
protected abstract java.lang.String getRecordString(DCFieldContainer record)