Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.dstore.universal.miners
Class UniversalByteStreamHandler

java.lang.Object
  extended by org.eclipse.dstore.core.model.ByteStreamHandler
      extended by 
org.eclipse.rse.dstore.universal.miners.UniversalByteStreamHandler
All Implemented Interfaces:
org.eclipse.dstore.core.model.IByteStreamHandler

public class UniversalByteStreamHandler
extends org.eclipse.dstore.core.model.ByteStreamHandler

This class overrides ByteStreamHandler to handle cases where virtual files are being transfered to the host


Field Summary
 
Fields inherited from class org.eclipse.dstore.core.model.ByteStreamHandler
_dataStore, _log, FILEMSG_REMOTE_SAVE_FAILED
 
Constructor Summary
UniversalByteStreamHandler (org.eclipse.dstore.core.model.DataStore dataStore, org.eclipse.dstore.core.model.DataElement log)
           
 
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 org.eclipse.dstore.core.model.ByteStreamHandler
findStatusFor, getId, internalSendAppendBytes, internalSendBytes
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniversalByteStreamHandler

public UniversalByteStreamHandler(org.eclipse.dstore.core.model.DataStore dataStore,
                                  org.eclipse.dstore.core.model.DataElement log)
Method Detail

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 org.eclipse.dstore.core.model.IByteStreamHandler
Overrides:
receiveBytes in class org.eclipse.dstore.core.model.ByteStreamHandler
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.

Specified by:
receiveAppendedBytes in interface org.eclipse.dstore.core.model.IByteStreamHandler
Overrides:
receiveAppendedBytes in class org.eclipse.dstore.core.model.ByteStreamHandler
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

RSE
Release 3.0

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire