|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.atlassian.browsers.Utils
public class Utils
Utilities used by the BrowserAutoInstaller
| Method Summary | |
|---|---|
static java.io.File |
extractZip(java.io.File destDir,
java.lang.String internalPath)
Will extract a zip file given by the internal path into the destination dir given |
static java.io.File |
findFile(java.io.File in,
java.lang.String file,
boolean exactMatch)
Recursively searches for a file in a given path. |
static void |
make755(java.io.File file)
runs "chmod 755 " on the specified File |
static boolean |
resourceExists(java.lang.String path)
Checks that a resource exists for the given path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void make755(java.io.File file)
throws java.io.IOException
java.io.IOException
public static java.io.File findFile(java.io.File in,
java.lang.String file,
boolean exactMatch)
throws java.io.IOException
in - the path to look infile - the file name to look forexactMatch - whether the filename must equal or contain the file name you are looking for
java.io.IOExceptionpublic static boolean resourceExists(java.lang.String path)
path - the path to check
public static java.io.File extractZip(java.io.File destDir,
java.lang.String internalPath)
throws java.io.IOException
destDir - The File indicating the directory to unzip the file into. This will become the parent directory.internalPath - The path to the zip file.
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||