|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.common.util.IOUtil
public class IOUtil
.
Distribution Licence: JSword is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The License is available on the internet here, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA The copyright to this program is held by it's authors. |
Licence
Field Summary | |
---|---|
private static Logger |
log
The log stream |
Constructor Summary | |
---|---|
private |
IOUtil()
Prevent instansiation |
Method Summary | |
---|---|
static void |
close(InputStream in)
Close the stream whatever without complaining |
static void |
close(OutputStream out)
Close the stream whatever without complaining |
static void |
unpackZip(File file,
File destdir)
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 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 errorpublic static void close(OutputStream out)
out
- The stream to closepublic static void close(InputStream in)
in
- The stream to close
|
Copyright ? 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |