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

io.windmill.utils.IOUtils Maven / Gradle / Ivy

There is a newer version: 0.2
Show newest version
package io.windmill.utils;

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

public class IOUtils
{
    private static final Logger logger = LoggerFactory.getLogger(IOUtils.class);

    private IOUtils()
    {}

    public static void closeQuietly(AutoCloseable c)
    {
        try
        {
            if (c != null)
                c.close();
        }
        catch (Exception e)
        {
            logger.warn("Failed closing {}", c, e);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy