|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.xbus.technical.as400.AS400FileBase net.sf.xbus.technical.as400.AS400FileSender net.sf.xbus.technical.as400.AS400ByteArrayListSender
public class AS400ByteArrayListSender
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 |
---|
public AS400ByteArrayListSender(XBUSSystem system) throws XException
TAManager
.
XException
- - If any error occursAS400Connection
Method Detail |
---|
public java.lang.Object execute(java.lang.String function, java.lang.Object callData) throws XException
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 |
execute
in interface ObjectSender
function
- - name of the interfacecallData
- - String to be written
XException
- if any error occurspublic java.lang.String getType()
Sender
Sender
can send data either as a String
or as an Object
to the neighboring system.Strings
the Sender must fulfill two
preconditions:
getType
returns Constants.TYPE_TEXT
TextSender
Objects
the Sender must also fulfill two
preconditions:
getType
returns Constants.TYPE_OBJECT
ObjectSender
getType
in interface Sender
getType
in class AS400FileSender
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |