Class FixedFieldFileReader
- java.lang.Object
-
- org.fugerit.java.core.fixed.parser.FixedFieldFileReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class FixedFieldFileReader extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description FixedFieldFileReader(FixedFieldFileDescriptor descriptor, InputStream is)
FixedFieldFileReader(FixedFieldFileDescriptor descriptor, Reader reader)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
FixedFieldFileDescriptor
getDescriptor()
int
getErrorCount()
List<FixedFileFieldValidationResult>
getGenericValidationErrors()
boolean
hasNext()
static FixedFieldFileReader
newInstance(FixedFieldFileDescriptor descriptor, InputStream is)
static FixedFieldFileReader
newInstance(FixedFieldFileDescriptor descriptor, Reader r)
String
nextLine()
FixedFileFieldMap
nextRawMap()
-
-
-
Constructor Detail
-
FixedFieldFileReader
public FixedFieldFileReader(FixedFieldFileDescriptor descriptor, InputStream is) throws IOException
- Throws:
IOException
-
FixedFieldFileReader
public FixedFieldFileReader(FixedFieldFileDescriptor descriptor, Reader reader) throws IOException
- Throws:
IOException
-
-
Method Detail
-
newInstance
public static final FixedFieldFileReader newInstance(FixedFieldFileDescriptor descriptor, Reader r) throws IOException
- Throws:
IOException
-
newInstance
public static final FixedFieldFileReader newInstance(FixedFieldFileDescriptor descriptor, InputStream is) throws IOException
- Throws:
IOException
-
hasNext
public boolean hasNext() throws IOException
- Throws:
IOException
-
nextLine
public String nextLine()
-
nextRawMap
public FixedFileFieldMap nextRawMap()
-
getGenericValidationErrors
public List<FixedFileFieldValidationResult> getGenericValidationErrors()
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getDescriptor
public FixedFieldFileDescriptor getDescriptor()
-
getErrorCount
public int getErrorCount()
-
-