|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.oxf.util.JavaHelper
public class JavaHelper
Constructor Summary | |
---|---|
JavaHelper()
|
Method Summary | |
---|---|
static byte[] |
addArrayElements(byte[] toArray,
byte[] fromArray)
adds the elements of the fromArray to the toArray. |
static String[] |
addArrayElements(String[] toArray,
String[] fromArray)
adds the elements of the fromArray to the toArray. |
static void |
cleanUpDir(String dirToClean,
int olderThanTimeMillis)
deletes all files in the specified directory which are older than olderThanTimeMillis. |
static void |
cleanUpDir(String dirToClean,
int olderThanTimeMillis,
String postFix)
deletes all files in the specified directory which are older than olderThanTimeMillis and have the defined postFix. |
static File |
genFile(String parentPath,
String midPart,
String postfix)
genreates a file name with the specified parent path, midPart and postFix. |
static File |
genRndFile(String parentPath,
String midPart,
String postfix)
genreates a random file name with the specified parent path, midPart and postFix. |
static void |
main(String[] args)
|
static String |
normalize(String toNormalize)
|
static String[] |
toStringArray(Object[] oArray)
transforms the oArray to a String[] |
static Color |
transformToColor(String hexString)
transforms a hexadecimal to a Color object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaHelper()
Method Detail |
---|
public static String[] toStringArray(Object[] oArray)
public static byte[] addArrayElements(byte[] toArray, byte[] fromArray)
public static String[] addArrayElements(String[] toArray, String[] fromArray)
public static Color transformToColor(String hexString)
hexString
- 7 character hex-string; something like "#FF6600"
public static File genRndFile(String parentPath, String midPart, String postfix)
public static File genFile(String parentPath, String midPart, String postfix)
public static String normalize(String toNormalize)
public static void cleanUpDir(String dirToClean, int olderThanTimeMillis)
dirToClean
- olderThanTimeMillis
- public static void cleanUpDir(String dirToClean, int olderThanTimeMillis, String postFix)
dirToClean
- olderThanTimeMillis
- postFix
- public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |