|
|||||||||
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.AS400FileReceiver net.sf.xbus.technical.as400.AS400ByteArrayListReceiver
public class AS400ByteArrayListReceiver
AS400ByteArrayListReceiver
serves for reading files from an
AS400 and putting the file content into a byte array list. Each byte array in
this list corresponds to a record in the file. Byte array are used instead of
strings if the character encoding does not allow predicting the the string
length of free text fields in sense of number of characters by knowing the
number of bytes. In this case bytes instaed of characters have to be counted
to determine the contents of single record fileds.
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 | |
---|---|
AS400ByteArrayListReceiver()
|
Method Summary | |
---|---|
protected java.lang.Object |
getRequestContent()
Reads the integrated file system object specified by the path name into a ByteArrayList. |
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 |
---|
public AS400ByteArrayListReceiver()
Method Detail |
---|
protected java.lang.Object getRequestContent() throws XException
Note: We use the record-level access classes for
reading.
Contents of each record are read into a byte array of AS400 data.
getRequestContent
in class AS400FileReceiver
ByteArrayList
.
XException
- if file can not be read or any I/O error occurspublic java.lang.String getType()
Receiver
Receiver
can receive data either as a
String
or as an Object
from a neighboring
system.Strings
, getType
returns Constants.TYPE_TEXT
Objects
, getType
returns Constants.TYPE_OBJECT
getType
in interface Receiver
getType
in class AS400FileReceiver
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |