|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.myrrix.common.io.IOUtils
public final class IOUtils
Simple utility methods related to I/O.
| Method Summary | |
|---|---|
static void |
deleteRecursively(File dir)
Attempts to recursively delete a directory. |
static InputStream |
openMaybeDecompressing(File file)
Opens an InputStream to the file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void deleteRecursively(File dir)
public static InputStream openMaybeDecompressing(File file)
throws IOException
InputStream to the file. If it appears to be compressed, because its file name ends in
".gz" or ".zip" or ".deflate", then it will be decompressed accordingly
file - file, possibly compressed, to open
InputStream on uncompressed contents
IOException - if the stream can't be opened or is invalid or can't be read
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||