|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.common.util.IOUtil
public final class IOUtil
.
The GNU Lesser General Public License for details.| Field Summary | |
|---|---|
private static org.slf4j.Logger |
log
The log stream |
| Constructor Summary | |
|---|---|
private |
IOUtil()
Prevent instantiation |
| Method Summary | |
|---|---|
static void |
close(Closeable closeable)
Closes any Closeable object |
static void |
close(ZipFile closeable)
Closes any Closeable object |
static void |
unpackZip(File file,
File destdir)
Unpack a zip file to a given directory. |
static void |
unpackZip(File file,
File destdir,
boolean include,
String... includeExcludes)
Unpack a zip file to a given directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final org.slf4j.Logger log
| Constructor Detail |
|---|
private IOUtil()
| Method Detail |
|---|
public static void unpackZip(File file,
File destdir)
throws IOException
file - The zip file to downloaddestdir - The directory to unpack up
IOException - If there is an file error
public static void unpackZip(File file,
File destdir,
boolean include,
String... includeExcludes)
throws IOException
file - The zip file to downloaddestdir - The directory to unpack upinclude - true to indicate the next arguments will be a filter that only includes what is specified.includeExcludes - a list of case insensitive patterns that will act as an inclusion or exclusion prefix
IOException - If there is an file errorpublic static void close(Closeable closeable)
Closeable object
closeable - The zip file to closepublic static void close(ZipFile closeable)
Closeable object
closeable - The zip file to close
|
Copyright ยจ 2003-2015 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||