Class Closeables


  • public final class Closeables
    extends Object
    Utility methods related to Closeable.
    Author:
    Yvonne Wang
    • Field Detail

      • logger

        private static final Logger logger
    • Constructor Detail

      • Closeables

        private Closeables()
    • Method Detail

      • closeQuietly

        public static void closeQuietly​(Closeable... closeables)
        Closes the given Closeables, ignoring any thrown exceptions.
        Parameters:
        closeables - the Closeables to close.
      • closeCloseable

        private static void closeCloseable​(Closeable c)