Package nom.tam.util

Class SafeClose

java.lang.Object
nom.tam.util.SafeClose

public final class SafeClose extends Object
Deprecated.
Use try-with-resources constructs of Java 8+ instead.
  • Method Details

    • close

      public static void close(Closeable io)
      Deprecated.
      Attmpts to an IO resources catching any IOException that might result. If the resource cannot be closed, the class will log the exception, but return normally.
      Parameters:
      io - The IO resource to close.