|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.dstore.core.util.Sender
This class is used for sending data to a socket in the DataStore communication layer.
Field Summary | |
---|---|
static String |
Copyright
|
Constructor Summary | |
---|---|
Sender(Socket socket,
DataStore dataStore)
Constructor |
Method Summary | |
---|---|
void |
sendAppendFile(DataElement objectRoot,
byte[] bytes,
int size,
boolean binary)
Sends the bytes of a file through the socket to be appended to a file on the other end |
void |
sendDocument(DataElement objectRoot,
int depth)
Sends a DataStore tree of data through the socket |
void |
sendDocument(String document)
Sends a string through the socket |
void |
sendFile(DataElement objectRoot,
byte[] bytes,
int size,
boolean binary)
Sends the bytes of a file through the socket |
void |
sendKeepAliveConfirmation(DataElement document)
|
void |
sendKeepAliveRequest(DataElement document)
|
Socket |
socket()
Returns the associated socket |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String Copyright
Constructor Detail |
public Sender(Socket socket, DataStore dataStore)
socket
- the associated socketdataStore
- the associated DataStoreMethod Detail |
public Socket socket()
public void sendDocument(String document)
sendDocument
in interface ISender
document
- the string to sendpublic void sendFile(DataElement objectRoot, byte[] bytes, int size, boolean binary)
objectRoot
- the object representing the file to sendbytes
- the bytes to send over the socketsize
- the number of bytes to send over the socketbinary
- indicates whether to send the bytes and binary or textpublic void sendAppendFile(DataElement objectRoot, byte[] bytes, int size, boolean binary)
objectRoot
- the object representing the file to sendbytes
- the bytes to send over the socketsize
- the number of bytes to send over the socketbinary
- indicates whether to send the bytes and binary or textpublic void sendDocument(DataElement objectRoot, int depth)
sendDocument
in interface ISender
objectRoot
- the root of the tree to senddepth
- the depth of the tree to sendpublic void sendKeepAliveRequest(DataElement document)
public void sendKeepAliveConfirmation(DataElement document)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |