Interface DownloadCallback<T>

Type Parameters:
T -
All Known Implementing Classes:
DownloadByteArray, DownloadFileStream, DownloadFileWriter

public interface DownloadCallback<T>
文件下载回调接口
Author:
tobato
  • Method Summary

    Modifier and Type
    Method
    Description
    注意不能直接返回入参的InputStream,因为此方法返回后将关闭原输入流
  • Method Details

    • recv

      T recv(InputStream ins) throws IOException
      注意不能直接返回入参的InputStream,因为此方法返回后将关闭原输入流

      不能关闭ins? TODO验证是否可以关闭

      Parameters:
      ins -
      Returns:
      Throws:
      IOException