com.rhi.architecture.parc.adapter.file
Class FlatFileInputAdapter

java.lang.Object
  extended bycom.rhi.architecture.parc.adapter.AbstractInputAdapter
      extended bycom.rhi.architecture.parc.adapter.file.AbstractFileInputAdapter
          extended bycom.rhi.architecture.parc.adapter.file.FlatFileInputAdapter
All Implemented Interfaces:
Adapter, InputAdapter

public abstract class FlatFileInputAdapter
extends AbstractFileInputAdapter

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.

Since:
1.0 MOD HISTORY DATE USER COMMENTS 06/20/2002 Gaurang Patel 1) Changed the variable names according to the coding standard. 2) Imports of classes are changed. 3) removed unused variables and unwanted code. 4) Changed the java docs. 07/08/2002 Gaurang Patel 1) The file information hardcoding is removed. 2) The keys of batchsize and delimiter has been changed according to the standard.
Author:
Sandeep Sahai

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

FlatFileInputAdapter

public FlatFileInputAdapter()
Default Constructor

Since:
1.0
Method Detail

init

public void init(java.util.Properties props)
          throws InitializationException
Description copied from class: AbstractFileInputAdapter

Performs any resource initialization.
Initilizes following things:

Specified by:
init in interface Adapter
Overrides:
init in class AbstractFileInputAdapter
Parameters:
props - Properties Property object, to store the initialization parameters.
Throws:
InitializationException

getFileName

public java.lang.String getFileName()
Provides name of the file to which this input adapter instance is tied.

Returns:
file name

getFileReader

public java.io.BufferedReader getFileReader()
Provides reader created during init()

Specified by:
getFileReader in class AbstractFileInputAdapter
Returns:
Returns the fileReader.
See Also:
AbstractFileInputAdapter.getFileReader()


Copyright © 2002-2004 Robert Half International. All Rights Reserved.