spec.benchmarks.compiler
Class Util
java.lang.Object
spec.benchmarks.compiler.Util
public class Util
- extends java.lang.Object
Constructor Summary |
Util()
|
Method Summary |
static boolean |
copyFile(java.io.File src,
java.io.File dest)
|
static boolean |
copyFile(java.lang.String src,
java.lang.String dest)
|
static java.io.File |
getSrcDir(java.io.File resDir,
java.lang.String name)
|
static java.io.File |
getSrcFile(java.io.File tmpDir)
|
static java.io.File |
getTmpDir(java.io.File resDir,
boolean makeDir)
|
static java.io.File |
getZipFile(java.io.File srcDir)
|
static java.lang.String |
linesep()
|
static void |
recursiveRemoveDir(java.io.File dir)
|
static void |
unzip(java.lang.String zipfile)
|
static void |
unzip(java.lang.String zipfile,
java.lang.String dir)
|
static void |
unzip(java.lang.String zipfile,
java.lang.String dir,
java.util.ArrayList<java.lang.String> files)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUFLEN
public static final int BUFLEN
- See Also:
- Constant Field Values
CHARSET
public static final java.nio.charset.Charset CHARSET
ACTION
public static final java.nio.charset.CodingErrorAction ACTION
REGULAR_FILE_OBJECT_NAME
public static final java.lang.String REGULAR_FILE_OBJECT_NAME
- See Also:
- Constant Field Values
ZIP_FILE_OBJECT_NAME
public static final java.lang.String ZIP_FILE_OBJECT_NAME
- See Also:
- Constant Field Values
ZIP_FILE_INDEX_FILE_OBJECT_NAME
public static final java.lang.String ZIP_FILE_INDEX_FILE_OBJECT_NAME
- See Also:
- Constant Field Values
Util
public Util()
linesep
public static java.lang.String linesep()
unzip
public static void unzip(java.lang.String zipfile)
unzip
public static void unzip(java.lang.String zipfile,
java.lang.String dir)
unzip
public static void unzip(java.lang.String zipfile,
java.lang.String dir,
java.util.ArrayList<java.lang.String> files)
copyFile
public static boolean copyFile(java.lang.String src,
java.lang.String dest)
getTmpDir
public static java.io.File getTmpDir(java.io.File resDir,
boolean makeDir)
copyFile
public static boolean copyFile(java.io.File src,
java.io.File dest)
getZipFile
public static java.io.File getZipFile(java.io.File srcDir)
recursiveRemoveDir
public static void recursiveRemoveDir(java.io.File dir)
getSrcDir
public static java.io.File getSrcDir(java.io.File resDir,
java.lang.String name)
getSrcFile
public static java.io.File getSrcFile(java.io.File tmpDir)