|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.xbus.technical.file.FileBase net.sf.xbus.technical.file.FileSender net.sf.xbus.technical.file.FileByteArrayListSender
public class FileByteArrayListSender
FileByteArrayListSender
manages writing a
ByteArrayList
on a mounted file system.
Field Summary |
---|
Fields inherited from class net.sf.xbus.technical.file.FileSender |
---|
mBackupFilename, mConfiguration, mTempFilename, senderExecuted |
Constructor Summary | |
---|---|
FileByteArrayListSender(XBUSSystem system)
Constructs a FileByteArrayListSender object giving all necessary data from the standard configuration, checking file permissions and registering current resource by the TAManager . |
Method Summary | |
---|---|
java.lang.Object |
execute(java.lang.String function,
java.lang.Object callData)
execute sends the given ByteArrayList
callData to the neighbor-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.file.FileSender |
---|
close, commit, execute, open, prepareWriteFile, prepareWriter, rollback |
Methods inherited from class net.sf.xbus.technical.file.FileBase |
---|
copyFile, deleteFile, getEncoding, getFileLength, getLastByteOfFile, renameFile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileByteArrayListSender(XBUSSystem system) throws XException
TAManager
.
XException
- if any error occursMethod Detail |
---|
public java.lang.Object execute(java.lang.String function, java.lang.Object callData) throws XException
execute
sends the given ByteArrayList
callData to the neighbor-system. Three actions are possible when
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 FileSender
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |