Sign in

CNLive Android Team / DownloadFileDemo · Files

GitLab

  • Back to group
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • DownloadFileDemo
  • ..
  • limit
  • DownloadIO.java
  • 文件下载基本功能
    5921ea59
    韩亚云 authored
    2019-04-22 16:50:08 +0800  
    Browse Code »
DownloadIO.java 526 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
package com.cnlive.downloadfile.download.limit;

import java.io.Closeable;
import java.io.IOException;

public class DownloadIO {
    public static void closeAll(Closeable... closeables){
        if(closeables == null){
            return;
        }
        for (Closeable closeable : closeables) {
            if(closeable!=null){
                try {
                    closeable.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}