public class DownloadStream extends Object implements DownloadCallback
Constructor and Description |
---|
DownloadStream(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
int |
recv(long fileSize,
byte[] data,
int bytes)
recv file content callback function, may be called more than once when the file downloaded
|
public DownloadStream(OutputStream out)
public int recv(long fileSize, byte[] data, int bytes)
recv
in interface DownloadCallback
fileSize
- file sizedata
- data buffbytes
- data bytesCopyright © 2018 lodsve. All rights reserved.