com.ibm.websphere.batch.devframework.datastreams.patternadapter
Interface RecordOrientedDatasetReaderPattern
-
public interface RecordOrientedDatasetReaderPattern
-
-
Method Summary
Methods Modifier and Type Method and Description java.lang.Object
fetchHeader()
Returns the header data that was obtained during the processHeader calljava.lang.Object
fetchRecord(com.ibm.jzos.ZFile reader)
This method should read the next record from the Zfile and return it in an appropriate form (as an intermediate object)void
initialize(java.util.Properties props)
This method is invoked during the job setup phase.void
processHeader(com.ibm.jzos.ZFile reader)
This method is invoked only once immediately after the Zfile is opened.
-
-
-
Method Detail
-
initialize
void initialize(java.util.Properties props)
This method is invoked during the job setup phase. The properties are the ones specified in the xJCL.- Parameters:
props
-
-
processHeader
void processHeader(com.ibm.jzos.ZFile reader) throws java.io.IOException
This method is invoked only once immediately after the Zfile is opened. It should be used to process header information if any.- Parameters:
reader
-- Throws:
java.io.IOException
-
fetchRecord
java.lang.Object fetchRecord(com.ibm.jzos.ZFile reader) throws java.io.IOException
This method should read the next record from the Zfile and return it in an appropriate form (as an intermediate object)- Parameters:
reader
-- Returns:
- Throws:
java.io.IOException
-
fetchHeader
java.lang.Object fetchHeader()
Returns the header data that was obtained during the processHeader call- Returns:
-
-