public class FlatFileParser
extends java.lang.Object
Constructor and Description |
---|
FlatFileParser(java.io.BufferedReader reader,
java.lang.String delim,
char textQualifier,
int startPosition)
Initialize and parse header information
|
FlatFileParser(java.io.BufferedReader reader,
java.lang.String delim,
char textQualifier,
int startPosition,
boolean useHeader)
Initialize and parse header information
|
FlatFileParser(java.io.BufferedReader reader,
java.lang.String delim,
int startPosition)
Initialize and parse header information
|
FlatFileParser(java.io.BufferedReader reader,
java.lang.String delim,
int startPosition,
boolean useHeader)
Initialize and parse header information
|
FlatFileParser(java.io.BufferedReader reader,
java.lang.String mosName,
java.lang.String action,
java.lang.String langCode,
java.lang.String delim,
char textQualifier,
int startPosition)
Initialize and parse header information
|
FlatFileParser(java.io.File file,
java.lang.String delim,
char textQualifier,
int startPosition,
boolean useHeader)
Initialize and parse header information
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAction()
returns action from Flat file header
|
java.lang.String |
getColHeader() |
java.util.List |
getColumnHeaders()
returns the column header from Flat file header
|
int |
getCurrentLine()
returns the line number
|
int |
getCurrentLineIndex()
return the line number of current record
|
java.lang.String |
getDelimiter() |
java.lang.String |
getExtSysName()
returns External System name from Flat file header
|
java.lang.String |
getInterface()
returns the Enterprise Service name from Flat file header
|
java.lang.String |
getOSName()
returns External System name from Flat file header
|
java.lang.String |
getTransLanguage()
returns the Trans language from Flat file header
|
java.util.List |
nextRecord()
Parse the next line in the Flat file
|
java.util.Map |
parseLine()
parses each line in the flat file
|
public FlatFileParser(java.io.BufferedReader reader, java.lang.String delim, int startPosition) throws MXException
reader
- Buffered reader of the Flat filedelim
- delimitter characterstartPosition
- Starting position of the parsing file. It will be 0 for the first time.MXException
public FlatFileParser(java.io.BufferedReader reader, java.lang.String delim, int startPosition, boolean useHeader) throws MXException
reader
- Buffered reader of the Flat filedelim
- delimitter characterstartPosition
- Starting position of the parsing file. It will be 0 for the first time.MXException
public FlatFileParser(java.io.BufferedReader reader, java.lang.String delim, char textQualifier, int startPosition) throws MXException
reader
- Buffered reader of the Flat filedelim
- delimitter characterstartPosition
- Starting position of the parsing file. It will be 0 for the first time.MXException
public FlatFileParser(java.io.BufferedReader reader, java.lang.String delim, char textQualifier, int startPosition, boolean useHeader) throws MXException
reader
- Buffered reader of the Flat filedelim
- delimitter characterstartPosition
- Starting position of the parsing file. It will be 0 for the first time.MXException
public FlatFileParser(java.io.File file, java.lang.String delim, char textQualifier, int startPosition, boolean useHeader) throws MXException
file
- File handler of the Flat filedelim
- delimitter characterstartPosition
- Starting position of the parsing file. It will be 0 for the first time.MXException
public FlatFileParser(java.io.BufferedReader reader, java.lang.String mosName, java.lang.String action, java.lang.String langCode, java.lang.String delim, char textQualifier, int startPosition) throws MXException
reader
- Buffered reader of the Flat filedelim
- delimitter characterstartPosition
- Starting position of the parsing file. It will be 0 for the first time.MXException
public java.util.Map parseLine() throws MXException
MXException
public int getCurrentLineIndex()
public java.util.List nextRecord() throws MXException
MXException
public java.lang.String getExtSysName()
public java.lang.String getOSName()
public java.lang.String getAction()
public java.lang.String getInterface()
public java.lang.String getTransLanguage()
public java.util.List getColumnHeaders()
public int getCurrentLine()
public java.lang.String getDelimiter()
public java.lang.String getColHeader()