Package org.jeasy.batch.core.reader
Class AbstractFileRecordReader<P>
- java.lang.Object
-
- org.jeasy.batch.core.reader.AbstractFileRecordReader<P>
-
- Type Parameters:
P
- type of the record's payload
- All Implemented Interfaces:
RecordReader<P>
public abstract class AbstractFileRecordReader<P> extends java.lang.Object implements RecordReader<P>
Abstract class for all file readers.- Author:
- Mahmoud Ben Hassine ([email protected])
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractFileRecordReader(java.nio.file.Path path)
AbstractFileRecordReader(java.nio.file.Path path, java.nio.charset.Charset charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.charset.Charset
getCharset()
java.nio.file.Path
getPath()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jeasy.batch.core.reader.RecordReader
close, open, readRecord
-
-
-
-
Constructor Detail
-
AbstractFileRecordReader
protected AbstractFileRecordReader(java.nio.file.Path path)
- Parameters:
path
- to read data from
-
AbstractFileRecordReader
public AbstractFileRecordReader(java.nio.file.Path path, java.nio.charset.Charset charset)
- Parameters:
path
- to read data fromcharset
- of the input file
-
-