io.github.benas.easybatch.tutorials.recipes
Class RecipeRecordReader

java.lang.Object
  extended by io.github.benas.easybatch.tutorials.recipes.RecipeRecordReader
All Implemented Interfaces:
RecordReader

public class RecipeRecordReader
extends Object
implements RecordReader

Recipe reader.


Field Summary
static String SEPARATOR
           
 
Constructor Summary
RecipeRecordReader(File file)
           
 
Method Summary
 void close()
           
 String getDataSourceName()
           
 Integer getTotalRecords()
           
 boolean hasNextRecord()
           
 void open()
           
 Record readNextRecord()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEPARATOR

public static final String SEPARATOR
See Also:
Constant Field Values
Constructor Detail

RecipeRecordReader

public RecipeRecordReader(File file)
Method Detail

open

public void open()
          throws Exception
Specified by:
open in interface RecordReader
Throws:
Exception

hasNextRecord

public boolean hasNextRecord()
Specified by:
hasNextRecord in interface RecordReader

readNextRecord

public Record readNextRecord()
                      throws Exception
Specified by:
readNextRecord in interface RecordReader
Throws:
Exception

getTotalRecords

public Integer getTotalRecords()
Specified by:
getTotalRecords in interface RecordReader

getDataSourceName

public String getDataSourceName()
Specified by:
getDataSourceName in interface RecordReader

close

public void close()
           throws Exception
Specified by:
close in interface RecordReader
Throws:
Exception


Copyright © 2014. All Rights Reserved.