net.sf.xbus.technical.as400
Class AS400LineReader

java.lang.Object
  extended by net.sf.xbus.technical.as400.AS400LineReader
All Implemented Interfaces:
LineReader

public class AS400LineReader
extends java.lang.Object
implements LineReader

LineReader to read/send a character stream from/to an AS/400.


Constructor Summary
AS400LineReader(com.ibm.as400.access.AS400 aS400System, com.ibm.as400.access.QSYSObjectPathName qSYSObject, com.ibm.as400.access.SequentialFile originFile, java.lang.String encoding)
          Constructor an AS400LineReader.
 
Method Summary
 void prepareReading(XBUSSystem destination)
          Initialization to be done before reading from the LineReader.
 java.lang.String readRecord()
          readRecord is called by senders to read the incoming data line by line.
 void terminateReading()
          Cleanup to be done after reading from the LineReader, e.g. closing an InputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AS400LineReader

public AS400LineReader(com.ibm.as400.access.AS400 aS400System,
                       com.ibm.as400.access.QSYSObjectPathName qSYSObject,
                       com.ibm.as400.access.SequentialFile originFile,
                       java.lang.String encoding)
                throws XException
Constructor an AS400LineReader.

Parameters:
aS400System - reference to the AS400
qSYSObject - ???
originFile -
encoding -
Throws:
XException - if something goes wrong
Method Detail

prepareReading

public void prepareReading(XBUSSystem destination)
                    throws XException
Description copied from interface: LineReader
Initialization to be done before reading from the LineReader.

Specified by:
prepareReading in interface LineReader
Throws:
XException - if something goes wrong

readRecord

public java.lang.String readRecord()
                            throws XException
Description copied from interface: LineReader
readRecord is called by senders to read the incoming data line by line.

Specified by:
readRecord in interface LineReader
Returns:
null if there is no more line
Throws:
XException - if something goes wrong

terminateReading

public void terminateReading()
                      throws XException
Description copied from interface: LineReader
Cleanup to be done after reading from the LineReader, e.g. closing an InputStream.

Specified by:
terminateReading in interface LineReader
Throws:
XException - if something goes wrong