z/OS Batch Runtime Planning and User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Interface definition

z/OS Batch Runtime Planning and User's Guide
SA23-1376-00

public interface FileReaderPattern {

	/**
	 * Invoked during the step setup phase
	 * @param props
	 */
	public void initialize(Properties props);
	/**
	 * This method is invoked only once. It should be used
	 * to read any header data if necessary.
	 * @param reader
	 * @throws IOException
	 */
	public void processHeader(BufferedReader reader) throws IOException;
	
	/**
	 * This method should read the next line from the reader
	 * and return the data in suitable form to be processed
	 * by the step.
	 * @param reader
	 * @return
	 * @throws IOException
	 */
	public Object fetchRecord(BufferedReader reader) throws IOException;
  
   /**
 	 * This method can be optionally invoked from the process step 
    * to obtain the header data that was previously obtained during the 
    * processHeader call 
    * @return 
    */
    
     public Object fetchHeader(); 
}

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014