com.github.shoothzj.javatool.util.StreamUtil Maven / Gradle / Ivy
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));
}
}
}