public interface FileEntryCallback
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
begin(FileEntryResults.FileInfo fileInfo)
Notify the callback of another file that has been uploaded
Check fileInfo.getStatus() to determine if the file has pre-failed
uploading, due to too many files uploaded, an invalid file extension,
or content type.
|
void |
end(FileEntryResults.FileInfo fileInfo)
If we detect that a file failed, say because it's over quota, then
we'll tell the callback, and it might massage the result, to still
accept the file, or possibly to fail the file that we thought was ok,
by calling FileEntryResults.FileInfo.updateStatus(FileEntryStatus, boolean).
|
void |
write(byte[] buffer,
int offset,
int length)
We write in chunks, as we read them in
|
void |
write(int data)
We write in chunks, as we read them in
|
void begin(FileEntryResults.FileInfo fileInfo)
fileInfo - Contains all of the information known about the file, before downloading the contentsvoid write(byte[] buffer,
int offset,
int length)
void write(int data)
void end(FileEntryResults.FileInfo fileInfo)
fileInfo - The same object that was passed into begin(FileInfo)Copyright 2014 ICEsoft Technologies Canada Corp., All Rights Reserved.