org.csource.fastdfs
Interface DownloadCallback

All Known Implementing Classes:
DownloadStream

public interface DownloadCallback

Download file callback interface

Version:
Version 1.4
Author:
Happy Fish / YuQing

Method Summary
 int recv(long file_size, byte[] data, int bytes)
          recv file content callback function, may be called more than once when the file downloaded
 

Method Detail

recv

int recv(long file_size,
         byte[] data,
         int bytes)
recv file content callback function, may be called more than once when the file downloaded

Parameters:
file_size - file size
data - data buff
bytes - data bytes
Returns:
0 success, return none zero(errno) if fail