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

Interface FileReaderPattern


  1. public interface FileReaderPattern

Method Summary

Modifier and Type Method and Description
  1. 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
  1. java.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.
  1. void
initialize(java.util.Properties props)
Invoked during the step setup phase
  1. void
processHeader(java.io.BufferedReader reader)
This method is invoked only once.

Method Detail

initialize

  1. void initialize(java.util.Properties props)
Invoked during the step setup phase
Parameters:
props -

processHeader

  1. void processHeader(java.io.BufferedReader reader)
  2. 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

  1. java.lang.Object fetchRecord(java.io.BufferedReader reader)
  2. 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

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