net.sf.xbus.technical.as400
Class AS400ByteArrayListSender

java.lang.Object
  extended by net.sf.xbus.technical.as400.AS400FileBase
      extended by net.sf.xbus.technical.as400.AS400FileSender
          extended by net.sf.xbus.technical.as400.AS400ByteArrayListSender
All Implemented Interfaces:
TAResource, ObjectSender, Sender, TextSender

public class AS400ByteArrayListSender
extends AS400FileSender
implements Sender, TAResource, ObjectSender

AS400AS400ByteArrayListSender manages writing a file on the iSeries integrated file System.

Configuration:

Chapter Section Key Content
System Interface Filename Path name that represents an object in the
QSYS library file system on the AS400 machine<
System Interface ConflictResolution Three actions must be possible when a file already exists
apend, overwrite or error
System Interface Encoding Specified character encoding of the interface (Optional)


Field Summary
 
Fields inherited from class net.sf.xbus.technical.as400.AS400FileSender
mOriginFile
 
Fields inherited from class net.sf.xbus.technical.as400.AS400FileBase
mConverter
 
Constructor Summary
AS400ByteArrayListSender(XBUSSystem system)
          Constructs a AS400ByteArrayListSender object giving all necessary data from the standard configuration, connecting to the iSeries and registering current resource by the TAManager.
 
Method Summary
 java.lang.Object execute(java.lang.String function, java.lang.Object callData)
          Implemented method execute from ObjectSender sends the given object callData to the AS400-system.
 java.lang.String getType()
          A Sender can send data either as a String or as an Object to the neighboring system.
 
Methods inherited from class net.sf.xbus.technical.as400.AS400FileSender
close, commit, execute, getResolution, open, prepareWriting, rollback
 
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.base.core.TAResource
close, commit, open, rollback
 

Constructor Detail

AS400ByteArrayListSender

public AS400ByteArrayListSender(XBUSSystem system)
                         throws XException
Constructs a AS400ByteArrayListSender object giving all necessary data from the standard configuration, connecting to the iSeries and registering current resource by the TAManager.

Throws:
XException - - If any error occurs
See Also:
AS400Connection
Method Detail

execute

public java.lang.Object execute(java.lang.String function,
                                java.lang.Object callData)
                         throws XException
Implemented method execute from ObjectSender sends the given object callData to the AS400-system. Three actions must be taking into account if a file already exists:

Append append new data to the existing file
Overwrite overwrite existing file with the new data
Error throw XException

Specified by:
execute in interface ObjectSender
Parameters:
function - - name of the interface
callData - - String to be written
Returns:
the response of the neighbor system
Throws:
XException - if any error occurs

getType

public java.lang.String getType()
Description copied from interface: Sender
A Sender can send data either as a String or as an Object to the neighboring system.
When working with Strings the Sender must fulfill two preconditions: When working with Objects the Sender must also fulfill two preconditions:

Specified by:
getType in interface Sender
Overrides:
getType in class AS400FileSender