public interface ModuleManagerEventListener
Modifier and Type | Method and Description |
---|---|
void |
downloadBegin(int totalSize,
java.lang.String moduleName)
update the listener when a download begins
|
void |
downloadEnd()
update the listener when a download ends
|
void |
unzipBegin(long totalSize,
java.lang.String moduleName)
begin an unzip procedure
|
void |
unzipEnd()
end an unzip procedure
|
void |
unzipUpdateProgress(long totalSize,
int bufferSize,
int readCount)
update the progress on an unzip procedure
|
void |
updateProgress(int totalSize,
int bufferSize,
int readCount,
java.io.InputStream is)
update the listener on the status of the download
|
void updateProgress(int totalSize, int bufferSize, int readCount, java.io.InputStream is)
totalSize
- the total size of the transfer. -1 if not knownbufferSize
- the size of each buffered transfer. -1 if this is not a
buffered transferreadCount
- the number of times bufferSize has been read.is
- the inputStream being readvoid downloadEnd()
void downloadBegin(int totalSize, java.lang.String moduleName)
totalSize
- the total size of the download. -1 if unknown.moduleName
- the name of the module beginning to downloadvoid unzipBegin(long totalSize, java.lang.String moduleName)
totalSize
- total size of the zip filemoduleName
- the name of the module unzippingvoid unzipEnd()
void unzipUpdateProgress(long totalSize, int bufferSize, int readCount)
totalSize
- total size of the zip filebufferSize
- size of each buffer in the zip entryreadCount
- number of bufferSize'd buffers that have been read