public class NARXMLOIFormatter extends OIFileFormatter
emptyFile, errMesg, logger, writer| Constructor and Description |
|---|
NARXMLOIFormatter(LoggerIfc logger,
OIFileWriter oiFileWriter)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
setNARSPerFile(int numNARs)
This method sets the maximum number of NARs to be written to
each file.
|
void |
writeToFile(DCFieldContainer record)
This method will write the NAR (as an array of bytes) to
the output file.
|
fileClosing, fileOpening, getFileWriter, getFtpPusher, isHealthy, putToFile, readyToCycle, setFtpPusher, shutdownpublic NARXMLOIFormatter(LoggerIfc logger, OIFileWriter oiFileWriter)
logger - 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 OIFileFormatterjava.io.IOExceptionpublic void setNARSPerFile(int numNARs)