Package com.nt.udc.oi.node.narxml
Class NARXMLOIFormatter
java.lang.Object
com.nt.udc.ndk.node.OIFileFormatter
com.nt.udc.oi.node.narxml.NARXMLOIFormatter
-
Field Summary
Fields inherited from class com.nt.udc.ndk.node.OIFileFormatter
emptyFile, errMesg, logger, writer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Methods inherited from class com.nt.udc.ndk.node.OIFileFormatter
fileClosing, fileOpening, getFileWriter, getFtpPusher, isHealthy, putToFile, readyToCycle, setFtpPusher, shutdown
-
Constructor Details
-
NARXMLOIFormatter
Constructor- Parameters:
logger
- LoggerIfc() object providing access to the node's log fileoiFileWriter
- OIFileWriter() object responsible for file output and managing the output files.
-
-
Method Details
-
writeToFile
This method will write the NAR (as an array of bytes) to the output file.- Specified by:
writeToFile
in classOIFileFormatter
- Throws:
IOException
-
setNARSPerFile
public void setNARSPerFile(int numNARs) This method sets the maximum number of NARs to be written to each file.
-