Package com.zing.zalo.zbrowser.cache
Class DiskLruCache.Util
- java.lang.Object
-
- com.zing.zalo.zbrowser.cache.DiskLruCache.Util
-
- Enclosing class:
- DiskLruCache
public static final class DiskLruCache.Util extends Object
Junk drawer of utility methods.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcloseQuietly(Closeable closeable)static voiddeleteContents(File dir)Deletes the contents ofdir.static StringreadFully(Reader reader)
-
-
-
Method Detail
-
readFully
public static String readFully(Reader reader) throws IOException
- Throws:
IOException
-
deleteContents
public static void deleteContents(File dir) throws IOException
Deletes the contents ofdir. Throws an IOException if any file could not be deleted, or ifdiris not a readable directory.- Throws:
IOException
-
closeQuietly
public static void closeQuietly(Closeable closeable)
-
-