| Modifier and Type | Method and Description |
|---|---|
FileIdentifier |
ProjectSpace.addFile(File file)
Adds a file to this project space.
|
FileIdentifier |
ProjectSpace.addFile(File file,
String fileIdentifier)
Adds a file to this project space.
|
FileDownloadStatus |
ProjectSpace.getFile(FileIdentifier fileIdentifier)
Gets a file with a specific identifier.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TransferCanceledException
Exception that is thrown when a transfer is canceled.
|
| Modifier and Type | Method and Description |
|---|---|
FileIdentifier |
FileTransferManager.addFile(File file)
Adds a file to be transferred (uploaded).
|
FileIdentifier |
FileTransferManager.addFile(File file,
String id)
Adds a file to be transferred (uploaded).
|
File |
FileTransferCacheManager.createTempFile(FileIdentifier id)
Creates a file in the temporary cache folder for a specified file id and
returns it.
|
File |
FileTransferCacheManager.getCachedFile(FileIdentifier identifier)
Returns a cached file with a given identifier.
|
FileDownloadStatus |
FileTransferManager.getFile(FileIdentifier fileIdentifier,
boolean isTriggeredByUI)
Returns the download status of the file that is associated with the given
FileIdentifier. |
FileDownloadStatus |
FileTransferManager.getFile(FileIdentifier fileIdentifier,
boolean isTriggeredByUI,
boolean forceDownload)
Returns the download status of the file that is associated with the given
FileIdentifier. |
File |
FileDownloadStatus.getTransferredFile()
Returns the transferred file.
|
File |
FileDownloadStatus.getTransferredFile(boolean block)
Similar to
FileDownloadStatus.getTransferredFile(), but this method blocks the
client thread. |
File |
FileTransferCacheManager.moveTempFileToCache(FileIdentifier id)
This method moves a file from the temporary folder into the cache.
|
File |
FileTransferCacheManager.moveTempFileToCache(FileIdentifier id,
boolean overwrite)
This method moves a file from the temporary folder into the cache.
|
| Constructor and Description |
|---|
FileUploadJob(FileTransferManager transferManager,
FileIdentifier fileId,
boolean transferVisibleToUser)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
FileIdentifier |
ProjectSpaceBase.addFile(File file)
Adds a file to this project space.
|
FileIdentifier |
ProjectSpaceBase.addFile(File file,
String fileIdentifier)
Adds a file to this project space.
|
FileDownloadStatus |
ProjectSpaceBase.getFile(FileIdentifier fileIdentifier)
Gets a file with a specific identifier.
|
| Modifier and Type | Method and Description |
|---|---|
FileChunk |
FileTransferSubInterfaceImpl.downloadFileChunk(ProjectId projectId,
FileTransferInformation fileInformation)
Reads a chunk from the file linked to the fileInformation.
|
FileTransferInformation |
FileTransferSubInterfaceImpl.uploadFileChunk(ProjectId projectId,
FileChunk fileChunk)
Writes a chunk to the file linked to the fileInformation in the fileChunk.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FileNotOnServerException
Exception class for file transfers that indicates that a requested file was not found on the server.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
FilePartitionerUtil.getFileSize(File file) |
static int |
FilePartitionerUtil.getNumberOfChunks(File file)
Returns the number of chunks for a given file.
|
static FileChunk |
FilePartitionerUtil.readChunk(File file,
FileTransferInformation fileInformation)
Reads a file chunk from a file.
|
static void |
FilePartitionerUtil.writeChunk(File file,
FileChunk fileChunk)
Writes a file chunk to a file.
|
Copyright © 2017. All rights reserved.