|
JBoss AS7 Deployment Plugin 7.9.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.as.plugin.common.Files
public class Files
Utility for files
.
Constructor Summary | |
---|---|
Files()
|
Method Summary | |
---|---|
static String |
createPath(boolean prependSeparator,
String... paths)
|
static String |
createPath(File base,
String... paths)
|
static String |
createPath(String... paths)
|
static void |
createPath(StringBuilder sb,
String... paths)
|
static boolean |
deleteRecursively(File dir)
|
static File |
dropExtension(File file)
Returns a new file with the extension dropped. |
static String |
getExtension(File file)
Returns the extension of the file or an empty string if no extension is found. |
static void |
unzip(File zipFile,
File targetDir)
Unzips the zip file to the target directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Files()
Method Detail |
---|
public static String createPath(String... paths)
public static String createPath(File base, String... paths)
public static String createPath(boolean prependSeparator, String... paths)
public static String getExtension(File file)
file
- the file to find the extension of
public static File dropExtension(File file)
file
- the file to drop the extension for
public static boolean deleteRecursively(File dir)
public static void unzip(File zipFile, File targetDir) throws IOException
zipFile
- the zip file to unziptargetDir
- the directory to extract the zip file to
IOException
- if an I/O error occurspublic static void createPath(StringBuilder sb, String... paths)
|
JBoss AS7 Deployment Plugin 7.9.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |