com.ibm.websphere.batch.devframework.datastreams.patternadapter

Interface RecordOrientedDatasetReaderPattern


  1. public interface RecordOrientedDatasetReaderPattern

Method Summary

Modifier and Type Method and Description
  1. java.lang.Object
fetchHeader()
Returns the header data that was obtained during the processHeader call
  1. java.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)
  1. void
initialize(java.util.Properties props)
This method is invoked during the job setup phase.
  1. void
processHeader(com.ibm.jzos.ZFile reader)
This method is invoked only once immediately after the Zfile is opened.

Method Detail

initialize

  1. 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

  1. void processHeader(com.ibm.jzos.ZFile reader)
  2. 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

  1. java.lang.Object fetchRecord(com.ibm.jzos.ZFile reader)
  2. 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

  1. java.lang.Object fetchHeader()
Returns the header data that was obtained during the processHeader call
Returns: