Class IoUtils


  • @Internal
    public final class IoUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private IoUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void closeQuietly​(java.io.Closeable closeable)
      Closes 'closeable', ignoring any checked exceptions.
      static void closeQuietly​(java.net.Socket socket)
      Closes 'socket', ignoring any exceptions.
      static void throwInterruptedIoException()  
      • Methods inherited from class java.lang.Object

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

      • IoUtils

        private IoUtils()
    • Method Detail

      • closeQuietly

        public static void closeQuietly​(java.io.Closeable closeable)
        Closes 'closeable', ignoring any checked exceptions. Does nothing if 'closeable' is null.
      • closeQuietly

        public static void closeQuietly​(java.net.Socket socket)
        Closes 'socket', ignoring any exceptions. Does nothing if 'socket' is null.
      • throwInterruptedIoException

        public static void throwInterruptedIoException()
                                                throws java.io.InterruptedIOException
        Throws:
        java.io.InterruptedIOException