public class FLVParser extends LINParser
Fixed Length Columns Text Parser
Parses a text file with fixed length columns into a memory array
Constructor and Description |
---|
FLVParser() |
FLVParser(java.lang.String sCharSetName)
Create Fixed Length Value Parser and set encoding to be used
|
Modifier and Type | Method and Description |
---|---|
int |
errorLine() |
int |
getColumnCount()
Get column count
|
int |
getColumnPosition(java.lang.String sColumnName) |
java.lang.String |
getField(int iCol,
int iRow) |
java.lang.String |
getField(java.lang.String sCol,
int iRow) |
void |
parseFile(java.io.File oInFile,
java.lang.String sFileDescriptor) |
charSet, charSet, getLine, getLineCount, parseFile, parseFile, parseStream, parseString, splitLine
public FLVParser()
public FLVParser(java.lang.String sCharSetName)
sCharSetName
- Name of charset encodingpublic int getColumnCount()
public int getColumnPosition(java.lang.String sColumnName)
sColumnName
- Column Namepublic int errorLine()
public void parseFile(java.io.File oInFile, java.lang.String sFileDescriptor) throws java.io.FileNotFoundException, java.io.IOException, java.lang.NumberFormatException, java.lang.ArrayIndexOutOfBoundsException, java.lang.RuntimeException, java.lang.NullPointerException, java.lang.IllegalArgumentException
java.io.FileNotFoundException
java.io.IOException
java.lang.NumberFormatException
java.lang.ArrayIndexOutOfBoundsException
java.lang.RuntimeException
java.lang.NullPointerException
java.lang.IllegalArgumentException
public java.lang.String getField(int iCol, int iRow) throws java.lang.IllegalStateException, java.lang.ArrayIndexOutOfBoundsException, java.lang.StringIndexOutOfBoundsException
java.lang.IllegalStateException
java.lang.ArrayIndexOutOfBoundsException
java.lang.StringIndexOutOfBoundsException
public java.lang.String getField(java.lang.String sCol, int iRow) throws java.lang.IllegalStateException, java.lang.ArrayIndexOutOfBoundsException, java.lang.StringIndexOutOfBoundsException
java.lang.IllegalStateException
java.lang.ArrayIndexOutOfBoundsException
java.lang.StringIndexOutOfBoundsException