Package | Description |
---|---|
wjhk.jupload2.upload |
This package contains the code that actually executes the upload (see below for a full description of the way the upload
is executed in the JUpload code).
|
wjhk.jupload2.upload.helper |
Modifier and Type | Class and Description |
---|---|
class |
UploadFileDataPoisonned
This class is a kind of 'End of Queue' object.
|
Modifier and Type | Method and Description |
---|---|
UploadFileData |
UploadFilePacket.remove(int index)
Prohibited !
|
Modifier and Type | Method and Description |
---|---|
boolean |
UploadFilePacket.add(UploadFileData uploadFileData) |
void |
FileUploadManagerThreadImpl.anotherFileHasBeenSent(UploadFilePacket uploadFilePacket,
UploadFileData newlyUploadedFileData) |
void |
FileUploadManagerThread.anotherFileHasBeenSent(UploadFilePacket uploadFilePacket,
UploadFileData newlyUploadedFileData)
This method is called each time a new file is sent to the server.
|
boolean |
UploadFilePacket.canAdd(UploadFileData uploadFileData)
Checks if this packet can accept this file, according to the current
UploadPolicy . |
void |
FileUploadManagerThreadImpl.nbBytesUploaded(long nbBytes,
UploadFileData uploadFileData) |
void |
FileUploadManagerThread.nbBytesUploaded(long nbBytes,
UploadFileData uploadFileData)
Used by the UploadFileData#uploadFile(java.io.OutputStream, long) for
each uploaded buffer
|
void |
FileUploadManagerThreadImpl.setUploadStatus(UploadFilePacket uploadFilePacket,
UploadFileData uploadFileData,
int uploadStatus) |
void |
FileUploadManagerThread.setUploadStatus(UploadFilePacket uploadFilePacket,
UploadFileData uploadFileData,
int uploadStatus)
Indicate the current state of the upload, to allow a correct display of
UPLOAD_STATUS_UPLOADED status. the upload progress bar.
|
Constructor and Description |
---|
FilePreparationThread(BlockingQueue<UploadFileData> preparedFileQueue,
FileUploadManagerThread fileUploadManagerThread,
UploadPolicy uploadPolicy) |
Modifier and Type | Method and Description |
---|---|
void |
ProgressBarManager.anotherFileHasBeenSent(UploadFilePacket uploadFilePacket,
UploadFileData uploadFileData)
Called when a new file is uploaded.
|
void |
ProgressBarManager.nbBytesUploaded(long nbBytes,
UploadFileData uploadFileData)
The progressBar is updated each 50ms and each 10% of the target file.
|
void |
ProgressBarManager.setUploadStatus(UploadFilePacket uploadFilePacket,
UploadFileData uploadFileData,
int uploadStatus) |
Copyright © 2015. All rights reserved.