public void performOptimizedWrite(byte[] handle, int blocksize,
			int outstandingRequests, java.io.InputStream in, int buffersize,
			FileTransferProgress progress) throws SftpStatusException,
			SshException, TransferCancelledException {
		performOptimizedWrite(handle, blocksize, outstandingRequests, in,
				buffersize, progress, 0);
	}
public void performOptimizedWrite ( byte [ ] handle , int blocksize , int outstandingRequests , java . io . InputStream in , int buffersize , FileTransferProgress progress ) throws SftpStatusException , SshException , TransferCancelledException { performOptimizedWrite ( handle , blocksize , outstandingRequests , in , buffersize , progress , 0 ) ; }
Performs an optimized write of a file through asynchronous messaging and
through buffering the local file into memory.

@param handle
the open file handle to write to
@param blocksize
the block size to send data, should be between 4096 and 65535
@param outstandingRequests
the maximum number of requests that can be outstanding at any
one time
@param in
the InputStream to read from
@param buffersize
the size of the temporary buffer to read from the InputStream.
Data is buffered into a temporary buffer so that the number of
local filesystem reads is reducted to a minimum. This
increases performance and so the buffer size should be as high
as possible. The default operation, if buffersize <= 0 is to
allocate a buffer the same size as the blocksize, meaning no
buffer optimization is performed.
@param progress
provides progress information, may be null.
@throws SshException