Remote System Explorer DataStore
Release 3.4

org.eclipse.dstore.core.java
Interface IClassByteStreamHandler

All Known Implementing Classes:
ClassByteStreamHandler

public interface IClassByteStreamHandler

The IClassByteStreamHandler interface is used to abstract file read and write operations across the network.


Method Summary
 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)
          Save a class instance in the specified location.
 

Method Detail

getIdentifier

String getIdentifier()
Returns the unique ID for this bytestream handler

Returns:
the unique id

receiveBytes

void receiveBytes(String className,
                  byte[] buffer,
                  int size)
Receive a class and load it. This method is called by the DataStore when the communication layer receives a class file transfer This method kicks off a new thread so that the receiver thread can be free to receive other data.

Parameters:
className - the name of the class to receive
buffer - the bytes that comprise the class
size - the number of bytes in the class

receiveInstanceBytes

void receiveInstanceBytes(byte[] buffer,
                          int size)
Save a class instance in the specified location. Invokes the operation in a new thread. This method is called by the DataStore when the communication layer receives a class file transfer

Parameters:
buffer - the bytes to insert in the class instance
size - the number of bytes to insert

Remote System Explorer DataStore
Release 3.4

Copyright (c) IBM Corporation and others 2000, 2012. All Rights Reserved.