|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rhi.architecture.parc.adapter.AbstractInputAdapter
com.rhi.architecture.parc.adapter.file.AbstractFileInputAdapter
com.rhi.architecture.parc.adapter.file.FlatFileInputAdapter
Generic Flat File InputAdapter. The basic function of this flat file input adapter is to facilitate a reading of a flat file in the batches, instead of reading a whole file in a single fetch.
Constructor Summary | |
FlatFileInputAdapter()
Default Constructor |
Method Summary | |
java.lang.String |
getFileName()
Provides name of the file to which this input adapter instance is tied. |
java.io.BufferedReader |
getFileReader()
Provides reader created during init() |
void |
init(java.util.Properties props)
Performs any resource initialization. |
Methods inherited from class com.rhi.architecture.parc.adapter.file.AbstractFileInputAdapter |
closeReader, getBatchSize, getDelimiter, loadBatch, parseRecordString, readRecordString, readRow |
Methods inherited from class com.rhi.architecture.parc.adapter.AbstractInputAdapter |
addToErrorChannel, cleanup, getAuditAgent, getErrors, push, setAuditAgent, setErrorChannel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FlatFileInputAdapter()
Method Detail |
public void init(java.util.Properties props) throws InitializationException
AbstractFileInputAdapter
Performs any resource initialization.
Initilizes following things:
#delim
2) no. of records to be read from file in the one batch #batchSize
#m_BufferReader
, to read the file line
by line in different batches.
init
in interface Adapter
init
in class AbstractFileInputAdapter
props
- Properties Property object, to store the
initialization parameters.
InitializationException
public java.lang.String getFileName()
public java.io.BufferedReader getFileReader()
getFileReader
in class AbstractFileInputAdapter
AbstractFileInputAdapter.getFileReader()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |