com.ibm.etools.systems.universal.miners
Class UniversalByteStreamHandler
java.lang.Object
com.ibm.etools.systems.dstore.core.model.ByteStreamHandler
com.ibm.etools.systems.universal.miners.UniversalByteStreamHandler
- All Implemented Interfaces:
- IByteStreamHandler
- public class UniversalByteStreamHandler
- extends ByteStreamHandler
This class overrides ByteStreamHandler to handle cases where
virtual files are being transfered to the host
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UniversalByteStreamHandler
public UniversalByteStreamHandler(DataStore dataStore,
DataElement log)
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
- Specified by:
receiveBytes
in interface IByteStreamHandler
- Overrides:
receiveBytes
in class ByteStreamHandler
- Parameters:
remotePath
- the path where to save the filebuffer
- the bytes to insert in the filesize
- the number of bytes to insertbinary
- 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.
- Specified by:
receiveAppendedBytes
in interface IByteStreamHandler
- Overrides:
receiveAppendedBytes
in class ByteStreamHandler
- Parameters:
remotePath
- the path where to save the filebuffer
- the bytes to append in the filesize
- the number of bytes to append in the filebinary
- indicates whether to save the bytes as binary or text
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.