Remote Systems
v6.4.1

com.ibm.etools.systems.dstore.core.model
Interface IByteStreamHandler

All Known Implementing Classes:
ByteStreamHandler

public interface IByteStreamHandler

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


Field Summary
static String Copyright
           
 
Method Summary
 String getId()
          Returns the unique ID for this bytestream handler
 void receiveAppendedBytes(String remotePath, byte[] buffer, int size, boolean binary)
          Append a bytes to a file at a specified location.
 void receiveBytes(String remotePath, byte[] buffer, int size, boolean binary)
          Save a file in the specified location.
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Method Detail

getId

public String getId()
Returns the unique ID for this bytestream handler

Returns:
the unique id

receiveBytes

public void receiveBytes(String remotePath,
                         byte[] buffer,
                         int size,
                         boolean binary)
Save a file in the specified location. This method is called by the DataStore when the communication layer receives a file transfer

Parameters:
remotePath - the path where to save the file
buffer - the bytes to insert in the file
size - the number of bytes to insert
binary - indicates whether to save the bytes as binary or text

receiveAppendedBytes

public void receiveAppendedBytes(String remotePath,
                                 byte[] buffer,
                                 int size,
                                 boolean binary)
Append a bytes to a file at a specified location. This method is called by the DataStore when the communication layer receives a file transfer append.

Parameters:
remotePath - the path where to save the file
buffer - the bytes to append in the file
size - the number of bytes to append in the file
binary - indicates whether to save the bytes as binary or text

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.