Class Closeables


  • public final class Closeables
    extends java.lang.Object
    Utility methods related to Closeable.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.logging.Logger logger  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Closeables()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static void closeCloseable​(java.io.Closeable c)  
      static void closeQuietly​(java.io.Closeable... closeables)
      Closes the given Closeables, ignoring any thrown exceptions.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        private static final java.util.logging.Logger logger
    • Constructor Detail

      • Closeables

        private Closeables()
    • Method Detail

      • closeQuietly

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

        private static void closeCloseable​(java.io.Closeable c)