Package com.nt.udc.oi.node.geneva
Class GenevaOIFileFormatter
java.lang.Object
com.nt.udc.ndk.node.OIFileFormatter
com.nt.udc.oi.node.geneva.GenevaOIFileFormatter
- All Implemented Interfaces:
GenevaFieldsIfc
-
Field Summary
Fields inherited from class com.nt.udc.ndk.node.OIFileFormatter
emptyFile, errMesg, logger, writerFields inherited from interface com.nt.udc.oi.node.geneva.GenevaFieldsIfc
AUDIT_1_FTR, AUDIT_2_FTR, CHAR_FTR, CHAR_SET_HDR, CHECKSUM_FTR, CONTROL_DATA_EXT, END_FTR, EOF_FTR, ERR_EXT, FILE_GRP_NUM_HDR, FILE_IN_GRP_NUM_HDR, FOOTER_FTR, FORMAT_HDR, GENEVA_HDR, LINES_FTR, SEC_CHECKSUM_FTR, SOURCE_HDR, SUBTYPE_HDR, TAG_HDR, TOT_FILES_IN_GRP_HDR, TYPE_HDR -
Constructor Summary
ConstructorsConstructorDescriptionGenevaOIFileFormatter(LoggerIfc logr, OIFileWriter oiFileWriter, GenevaMetaWriter metaWriter, String activeExt, String finishExt) constructs a Geneva OI file formmatter object -
Method Summary
Modifier and TypeMethodDescriptionvoidfileClosing(DCFieldContainer record) write out footer stop incrementing the lines and characters after the End valuevoidfileOpening(DCFieldContainer record) write out headervoidwriteToFile(DCFieldContainer record) This method should contain any logic required to properly format the output file (i.e.Methods inherited from class com.nt.udc.ndk.node.OIFileFormatter
getFileWriter, getFtpPusher, isHealthy, putToFile, readyToCycle, setFtpPusher, shutdown
-
Constructor Details
-
GenevaOIFileFormatter
public GenevaOIFileFormatter(LoggerIfc logr, OIFileWriter oiFileWriter, GenevaMetaWriter metaWriter, String activeExt, String finishExt) constructs a Geneva OI file formmatter object- Parameters:
oiFileWriter- write data out using this objectactiveExt- file extension of an active filefinishExt- file extension of a finished file (not ftp'd)logger- logger warnings and errrors to this object
-
-
Method Details
-
fileOpening
write out header- Overrides:
fileOpeningin classOIFileFormatter- Throws:
IOException
-
fileClosing
write out footer stop incrementing the lines and characters after the End value- Overrides:
fileClosingin classOIFileFormatter- Throws:
IOException
-
writeToFile
Description copied from class:OIFileFormatterThis method should contain any logic required to properly format the output file (i.e. multiple records per detail line, data collection for trailer record, etc.)- Specified by:
writeToFilein classOIFileFormatter- Throws:
IOException
-
getSubType
-
getGroupName
-
getEventGroupId
-
getControlGroupId
-
getControlTag
-