com.ibm.websphere.batch.devframework.datastreams.patternadapter
Interface FileReaderPattern
- public interface FileReaderPattern
Method Summary
Modifier and Type | Method and Description |
---|---|
|
fetchHeader()
This method can be optionally invoked from the process step
to obtain the header data that was previously obtained during the processHeader
call
|
|
fetchRecord(java.io.BufferedReader reader)
This method should read the next line from the reader
and return the data in suitable form to be processed
by the step.
|
|
initialize(java.util.Properties props)
Invoked during the step setup phase
|
|
processHeader(java.io.BufferedReader reader)
This method is invoked only once.
|
Method Detail
initialize
- void initialize(java.util.Properties props)
Invoked during the step setup phase
Parameters:
props
- processHeader
- void processHeader(java.io.BufferedReader reader)
- throws java.io.IOException
This method is invoked only once. It should be used
to write any header data if necessary.
Parameters:
reader
- Throws:
java.io.IOException
fetchRecord
- java.lang.Object fetchRecord(java.io.BufferedReader reader)
- throws java.io.IOException
This method should read the next line from the reader
and return the data in suitable form to be processed
by the step.
Parameters:
reader
- Returns:
Throws:
java.io.IOException
fetchHeader
- java.lang.Object fetchHeader()
This method can be optionally invoked from the process step
to obtain the header data that was previously obtained during the processHeader
call
Returns: