Class DiskLruCache.Util

  • Enclosing class:
    DiskLruCache

    public static final class DiskLruCache.Util
    extends Object
    Junk drawer of utility methods.
    • Method Detail

      • deleteContents

        public static void deleteContents​(File dir)
                                   throws IOException
        Deletes the contents of dir. Throws an IOException if any file could not be deleted, or if dir is not a readable directory.
        Throws:
        IOException
      • closeQuietly

        public static void closeQuietly​(Closeable closeable)