com.ibm.websphere.batch.devframework.datastreams.patternadapter
Interface FileReaderPattern
-
public interface FileReaderPattern
-
-
Method Summary
Methods Modifier and Type Method and Description 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 calljava.lang.Object
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.void
initialize(java.util.Properties props)
Invoked during the step setup phasevoid
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:
-
-