All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.shoothzj.javatool.util.StreamUtil Maven / Gradle / Ivy

There is a newer version: 3.1.15
Show newest version
package com.github.shoothzj.javatool.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.Closeable;

public class StreamUtil {

    private static final Logger log = LoggerFactory.getLogger(StreamUtil.class);

    public static void close(Closeable closeable) {
        try {
            closeable.close();
        } catch (Exception e) {
            log.error("Closable close failed, exception is {}", ExceptionUtil.getException(e));
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy