|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.util.IOUtil
public class IOUtil
Helper i/o static methods.
Constructor Summary | |
---|---|
IOUtil()
|
Method Summary | |
---|---|
static boolean |
delete(java.io.File f)
Deletes given file or directory (it it is directory then it deletes it recursively. |
static void |
makeJar(java.io.File jarFile,
java.io.File dir)
Packs complete directory into the jar file. |
static void |
makeJarFromSubdirs(java.io.File jarfile,
java.io.File dir)
Packs all subdirectories into the jar file. |
static void |
makeJarFromSubdirs(java.io.File jarfile,
java.io.File dir,
java.util.Set<java.lang.String> subdirs)
Packs selected subdirectories into the jar file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IOUtil()
Method Detail |
---|
public static boolean delete(java.io.File f)
f
- file or directory
true
if and only if the file or directory is successfully deleted; false
otherwisepublic static void makeJar(java.io.File jarFile, java.io.File dir) throws java.io.IOException
jarFile
- name of the jar filedir
- directory to be packed
java.io.IOException
public static void makeJarFromSubdirs(java.io.File jarfile, java.io.File dir) throws java.io.IOException
jarfile
- name of the jar filedir
- directory to be packed
java.io.IOException
public static void makeJarFromSubdirs(java.io.File jarfile, java.io.File dir, java.util.Set<java.lang.String> subdirs) throws java.io.IOException
jarfile
- name of the jar filedir
- directory to be packedsubdirs
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |