Class FixedFieldFileReaderAbstract
- java.lang.Object
-
- org.fugerit.java.core.fixed.parser.helper.FixedFieldFileReaderAbstract
-
- Direct Known Subclasses:
ReaderFixedFieldFileReader
,StreamFixedFieldFileReader
public abstract class FixedFieldFileReaderAbstract extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected FixedFieldFileDescriptor
descriptor
protected int
errorCount
protected static org.slf4j.Logger
logger
protected int
rowNumber
-
Constructor Summary
Constructors Modifier Constructor Description protected
FixedFieldFileReaderAbstract(FixedFieldFileDescriptor descriptor)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addEndlineError(String currentEndline)
protected void
addRecordLenthError(int length)
abstract void
close()
static Properties
endlineMapper()
protected static String
formatEndline(String el)
ResourceBundle
getBundle()
FixedFieldFileDescriptor
getDescriptor()
String
getEndline()
int
getErrorCount()
List<FixedFileFieldValidationResult>
getGenericValidationErrors()
abstract boolean
hasNext()
abstract String
nextLine()
FixedFileFieldMap
nextRawMap()
-
-
-
Field Detail
-
logger
protected static org.slf4j.Logger logger
-
descriptor
protected FixedFieldFileDescriptor descriptor
-
rowNumber
protected int rowNumber
-
errorCount
protected int errorCount
-
-
Constructor Detail
-
FixedFieldFileReaderAbstract
protected FixedFieldFileReaderAbstract(FixedFieldFileDescriptor descriptor) throws IOException
- Throws:
IOException
-
-
Method Detail
-
endlineMapper
public static final Properties endlineMapper()
-
getGenericValidationErrors
public List<FixedFileFieldValidationResult> getGenericValidationErrors()
-
hasNext
public abstract boolean hasNext() throws IOException
- Throws:
IOException
-
close
public abstract void close() throws IOException
- Throws:
IOException
-
nextLine
public abstract String nextLine()
-
nextRawMap
public FixedFileFieldMap nextRawMap()
-
getDescriptor
public FixedFieldFileDescriptor getDescriptor()
-
getErrorCount
public int getErrorCount()
-
getBundle
public ResourceBundle getBundle()
-
getEndline
public String getEndline()
-
addEndlineError
protected void addEndlineError(String currentEndline)
-
addRecordLenthError
protected void addRecordLenthError(int length)
-
-