|
Remote System Explorer DataStore Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.dstore.core.java.ClassByteStreamHandler
public class ClassByteStreamHandler
The ClassByteStreamHandler class is used to abstract classfile read and write operations across the network. By default this is used for sending and receiving class files on the client and the server. The class can be extended if the default byte stream implementations are not sufficient for a particular platform or use.
If ClassByteStreamHandler is extended, you need to tell the DataStore to use the
extended implementation. To do that, call DataStore.setClassByteStreamHandler(ClassByteStreamHandler)
.
Nested Class Summary | |
---|---|
protected class |
ClassByteStreamHandler.ReceiveClassInstanceThread
A new thread that can be spawned to receive the class |
protected class |
ClassByteStreamHandler.ReceiveClassThread
A new thread that can be spawned to receive the class |
Field Summary | |
---|---|
protected DataStore |
_dataStore
|
protected DataElement |
_log
|
protected static String |
FILEMSG_REMOTE_SAVE_FAILED
|
Constructor Summary | |
---|---|
ClassByteStreamHandler(DataStore dataStore,
DataElement log)
Contructor |
Method Summary | |
---|---|
protected DataElement |
findStatusFor(String remotePath)
|
String |
getIdentifier()
Returns the unique ID for this bytestream handler |
void |
receiveBytes(String className,
byte[] buffer,
int size)
Receive a class and load it. |
void |
receiveInstanceBytes(byte[] buffer,
int size)
Receive a class instance and load it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DataStore _dataStore
protected DataElement _log
protected static final String FILEMSG_REMOTE_SAVE_FAILED
Constructor Detail |
---|
public ClassByteStreamHandler(DataStore dataStore, DataElement log)
dataStore
- the DataStore instancelog
- the log in which to log status and messagesMethod Detail |
---|
public String getIdentifier()
IClassByteStreamHandler
getIdentifier
in interface IClassByteStreamHandler
public void receiveBytes(String className, byte[] buffer, int size)
receiveBytes
in interface IClassByteStreamHandler
className
- the name of the class to receivebuffer
- the bytes that comprise the classsize
- the number of bytes in the classpublic void receiveInstanceBytes(byte[] buffer, int size)
receiveInstanceBytes
in interface IClassByteStreamHandler
buffer
- the bytes that comprise the class instancesize
- the number of bytes in the class instanceprotected DataElement findStatusFor(String remotePath)
|
Remote System Explorer DataStore Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |