Package com.nt.udc.oi.node.xml
Class XMLOIFormatter
java.lang.Object
com.nt.udc.ndk.node.OIFileFormatter
com.nt.udc.oi.node.xml.XMLOIFormatter
- Direct Known Subclasses:
XMLOISimpleFormatter
This class is responsible for properly formatting the output
files of the XML OI node. For each output file created, the
initial entry into the file will be a header line detailing the
fields contained in the following lines.
- Since:
- JDK1.2.2
-
Field Summary
Fields inherited from class com.nt.udc.ndk.node.OIFileFormatter
emptyFile, errMesg, logger, writer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis is a callback from the base-class.voidThis is a callback from the base-class.protected abstract StringgetRecordString(DCFieldContainer record) voidwriteToFile(DCFieldContainer record) This method will write the appropriately formatted data contained within the DCFieldContainer to the output file.Methods inherited from class com.nt.udc.ndk.node.OIFileFormatter
getFileWriter, getFtpPusher, isHealthy, putToFile, readyToCycle, setFtpPusher, shutdown
-
Constructor Details
-
XMLOIFormatter
Constructor- Parameters:
logr- 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 appropriately formatted data contained within the DCFieldContainer to the output file. When necessary, a file header line will also be written.- Specified by:
writeToFilein classOIFileFormatter- Throws:
IOException
-
fileOpening
This is a callback from the base-class. The call is made right after opening an output file. Here it is used to write out a header.- Overrides:
fileOpeningin classOIFileFormatter
-
fileClosing
This is a callback from the base-class. The call is made just before closing an output file. Here it is used to write out a trailer.- Overrides:
fileClosingin classOIFileFormatter
-
getRecordString
-