GITLAB

陶汉栋 / ExpressScanner

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • expressscanner
  • ..
  • utils
  • IOUtils.java
  • 456ba80d   no message Browse Code »
    陶汉栋
    2018-04-27 09:21:14 +0800  
IOUtils.java 458 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
package com.share.mvpsdk.utils;

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

/**
 * Created by Horrarndoo on 2017/8/31.
 * <p>
 * IO流工具类
 */
public class IOUtils {
    /**
     * 关闭流
     */
    public static boolean close(Closeable io) {
        if (io != null) {
            try {
                io.close();
            } catch (IOException e) {
                LogUtils.e(e);
            }
        }
        return true;
    }
}