Interface FixLenService
- All Superinterfaces:
Service
public interface FixLenService extends Service
FixLenService is used when processing fixed length messages.
It covers activities such as:
- Creating an FixLenDef from File
-
Method Summary
Modifier and Type Method Description FixLenDef
getFixLenDef(java.lang.String moduleOrEptPrefix, java.lang.String metadataFileName, PlatformUserContext pltUsrContext)
This method is used to create and load FixLenDef object from the file within the module or EPT specified.java.util.List<FixLenRow>
parseRows(java.util.List<java.lang.String> fixLenLines, FixLenDef fixLenDef)
This method is used to parse the list of FixLen lines and create list of FixLenRowsvoid
printFixLenRow(FixLenRow fixLenRow, FixLenDef fixLenDef, java.io.Writer writer)
This method is used to write a FixLenRow object in fixed-length file format to a writer.
-
Method Details
-
getFixLenDef
FixLenDef getFixLenDef(java.lang.String moduleOrEptPrefix, java.lang.String metadataFileName, PlatformUserContext pltUsrContext)This method is used to create and load FixLenDef object from the file within the module or EPT specified.- Parameters:
moduleOrEptPrefix
- module prefix (e.g. ZBKS or EPT.MyEnt)metadataFileName
- this xml file should be in the "fixlen" subpackage of your module or EPT's base java packagepltUsrContext
- caller's context- Returns:
- FixLenDef FixLenDef unmarshalled from the file
-
printFixLenRow
This method is used to write a FixLenRow object in fixed-length file format to a writer.- Parameters:
fixLenRow
- the fixLenRow that needs to be written to the filefixLenDef
- the FixLenDef for the fixLen typewriter
- the Writer object for the outputStream
-
parseRows
java.util.List<FixLenRow> parseRows(java.util.List<java.lang.String> fixLenLines, FixLenDef fixLenDef)This method is used to parse the list of FixLen lines and create list of FixLenRows- Parameters:
fixLenLines
- lines in the fixLen filefixLenDef
- fixLenDef used for the parsing
-