|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.csource.fastdfs.DownloadStream
public class DownloadStream
Download file by stream (download callback class)
Constructor Summary | |
---|---|
DownloadStream(java.io.OutputStream out)
|
Method Summary | |
---|---|
int |
recv(long fileSize,
byte[] data,
int bytes)
recv file content callback function, may be called more than once when the file downloaded |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DownloadStream(java.io.OutputStream out)
Method Detail |
---|
public int recv(long fileSize, byte[] data, int bytes)
recv
in interface DownloadCallback
fileSize
- file sizedata
- data buffbytes
- data bytes
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |