Methods Summary |
---|
public byte[] | downloadBytes(java.lang.Object downloadID, int requestSize)Download bytes from the server using the downloadID obtained from
initiateDownload().
The bufferSize is the requested number of bytes to
be received. If the size of the returned byte[] is less than
the requestSize, then the transfer has completed, and the
downloadID is no longer valid. An attempt to read more than
the allowed maximum size will throw an exception. The caller
can check the total download size in advance via
getDownloadLength().
|
public long | getDownloadLength(java.lang.Object downloadID)Get the total length the download will be, in bytes.
|
public int | getMaxDownloadChunkSize()
|
public java.lang.Object | initiateDownload(java.io.File theFile, boolean deleteWhenDone)Initiates a file download with the given filename. This operation
may be used locally or remotely, but the File specified must exist
and be readable on the server.
|
public java.lang.Object | initiateUpload(java.lang.String name, long totalSize)Initiate an upload operation. The supplied name is intended as
a prefix; if it contains file system separators such as ":", "/" or "\",
they are converted into the "_" character.
|
public java.io.File | takeUpload(java.lang.Object uploadID)Ownership of transferred bytes (now in a File) are transferred to
the caller.
|
public boolean | uploadBytes(java.lang.Object uploadID, byte[] bytes)Upload bytes for the specified upload
|