net.sf.xbus.technical.as400
Class AS400LineReaderReceiver

java.lang.Object
  extended by net.sf.xbus.technical.as400.AS400FileBase
      extended by net.sf.xbus.technical.as400.AS400FileReceiver
          extended by net.sf.xbus.technical.as400.AS400LineReaderReceiver
All Implemented Interfaces:
TAResource, Receiver, ReceiverSingleInterface

public class AS400LineReaderReceiver
extends AS400FileReceiver
implements Receiver, ReceiverSingleInterface

AS400LineReaderReceiver receives data from a AS400 file but instead of reading them in passing the data itself through the xBus it only opens the file and passes a refernce to it to the application layer. The data will be read by a sender record by record. This is done with the help of the AS400LineReader class. Exactly an object of this class is passed through the xBus. A respective sender access it in terms of the operations declared in the LineReader interface. This way of data transport is suitable for large interface files with data which does not need any transformation.

Author:
Stephan Düwel

Field Summary
 
Fields inherited from class net.sf.xbus.technical.as400.AS400FileReceiver
mAS400System, mEncoding, mOriginFile, mQSYSObject
 
Fields inherited from class net.sf.xbus.technical.as400.AS400FileBase
mConverter
 
Constructor Summary
AS400LineReaderReceiver()
           
 
Method Summary
protected  java.lang.Object getRequestContent()
          Opens the interface file on the AS400 and returns an AS400LineReader object as reference to the opened file.
 java.lang.String getType()
          A Receiver can receive data either as a String or as an Object from a neighboring system.
 
Methods inherited from class net.sf.xbus.technical.as400.AS400FileReceiver
close, commit, doReceive, getOnError, getResolution, open, readConfiguration, receive, rollback, setAS400System
 
Methods inherited from class net.sf.xbus.technical.as400.AS400FileBase
callAS400Program, copyFile, deleteFile, deleteMember, getEncoding, getRenamedMember, releaseLock, renameFile, setLock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.xbus.technical.ReceiverSingleInterface
receive
 

Constructor Detail

AS400LineReaderReceiver

public AS400LineReaderReceiver()
Method Detail

getRequestContent

protected java.lang.Object getRequestContent()
                                      throws XException
Opens the interface file on the AS400 and returns an AS400LineReader object as reference to the opened file. Object attributes should have been initialized by reading them from the configuration.

Overrides:
getRequestContent in class AS400FileReceiver
Returns:
reference to the opened AS400 file
Throws:
XException - if something goes wrong

getType

public java.lang.String getType()
Description copied from interface: Receiver
A Receiver can receive data either as a String or as an Object from a neighboring system.

Specified by:
getType in interface Receiver
Overrides:
getType in class AS400FileReceiver