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 java.io.Closeable;

/**
 * @author shoothzj
 */
public class StreamUtil {
    private static final org.slf4j.Logger log = org.slf4j.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