com.intel.gpe.client2.common.transfers.byteio
Class StreamableByteIOFileImportImpl

java.lang.Object
  extended by com.intel.gpe.client2.common.transfers.byteio.StreamableByteIOFileImportImpl
All Implemented Interfaces:
FileImport

public class StreamableByteIOFileImportImpl
extends java.lang.Object
implements FileImport

Version:
$Id: StreamableByteIOFileImportImpl.java,v 1.5 2006/10/19 13:40:54 dizhigul Exp $
Author:
Dmitry Ivanov

Constructor Summary
StreamableByteIOFileImportImpl(com.intel.gpe.clients.api.StorageClient storage)
           
 
Method Summary
 java.lang.String getName()
          Get the name of the protocol.
 void putFile(GPESecurityManager secMgr, java.io.InputStream is, java.lang.String remoteFile)
          Deprecated. 
 void putFile(java.lang.Object secMgr, java.io.InputStream is, java.lang.String remoteFile, FileTransferProgressListener progress)
          Put file to remote location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamableByteIOFileImportImpl

public StreamableByteIOFileImportImpl(com.intel.gpe.clients.api.StorageClient storage)
Method Detail

putFile

public void putFile(java.lang.Object secMgr,
                    java.io.InputStream is,
                    java.lang.String remoteFile,
                    FileTransferProgressListener progress)
             throws java.lang.Exception
Description copied from interface: FileImport
Put file to remote location.

Specified by:
putFile in interface FileImport
Parameters:
secMgr - - the security manager
is - - the input stream where to read the bytes from
remoteFile - - the target file
progress - the progress listener (may be null)
Throws:
java.lang.Exception

putFile

@Deprecated
public void putFile(GPESecurityManager secMgr,
                               java.io.InputStream is,
                               java.lang.String remoteFile)
             throws java.lang.Exception
Deprecated. 

Description copied from interface: FileImport
Put file to remote location.

Specified by:
putFile in interface FileImport
Parameters:
secMgr - - the security manager
is - - the input stream where to read the bytes from
remoteFile - - the target file
Throws:
java.lang.Exception

getName

public java.lang.String getName()
Description copied from interface: FileImport
Get the name of the protocol.

Specified by:
getName in interface FileImport
Returns:
the name of the protocol


Copyright © 2008. All Rights Reserved.