|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jfw.util.Miscellaneous
public final class Miscellaneous
Various utility methods. All methods are static and thread safe.
Constructor Summary | |
---|---|
Miscellaneous()
|
Method Summary | |
---|---|
static java.lang.String |
arrayList2String(java.util.ArrayList arrayList)
Transform an ArrayList of String in String. |
static java.lang.String |
arrayString2String(java.lang.String[] values)
Transform an array of String. |
static java.util.ArrayList |
getArrayListFromString(java.lang.String toElaborate,
java.lang.String separator)
Get an ArrayList from a String. |
static java.util.ArrayList |
getArrayListFromStringArray(java.lang.String[] toElaborate)
Get an ArrayList from an array of Strings. |
static java.lang.String[] |
getStringArrayFromArrayList(java.util.ArrayList toElaborate)
Get an array of Strings from an ArrayList. |
static java.lang.String |
getTimeExtension()
Deprecated. moved in DateUtils |
static java.lang.String |
getTimeExtension(long date)
Deprecated. moved in DateUtils |
static java.util.Vector |
getVectorFromString(java.lang.String toElaborate,
java.lang.String separator)
Get a Vector from a String. |
static java.util.Vector |
getVectorFromStringArray(java.lang.String[] toElaborate)
Get a Vector from an array of Strings. |
static java.lang.String |
stackTrace(java.lang.Exception exception)
Get as a string a stack trace. |
static java.util.ArrayList |
stackTrace(int remove)
Get an ArrayList with the lines of a stack trace. |
static java.lang.String |
stackTrace(java.lang.Throwable throwable)
Get as a string a stack trace. |
static java.lang.String[] |
transformDate(java.lang.String dateTime)
Deprecated. moved in DateUtils |
static java.lang.String |
vector2String(java.util.Vector vector)
Transform a Vector of String in String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Miscellaneous()
Method Detail |
---|
public static final java.util.ArrayList stackTrace(int remove) throws java.lang.Exception
remove
- number of rows from the stack trace to skeep.
java.lang.Exception
public static final java.lang.String stackTrace(java.lang.Exception exception)
exception
- the exception to elaborate.
public static final java.lang.String stackTrace(java.lang.Throwable throwable)
throwable
- the throwable to elaborate.
public static final java.lang.String vector2String(java.util.Vector vector)
vector
- a Vector object.
public static final java.lang.String arrayList2String(java.util.ArrayList arrayList)
arrayList
- an ArrayList object.
public static final java.lang.String arrayString2String(java.lang.String[] values)
values
- an array of String object.
public static final java.lang.String getTimeExtension()
DateUtils
public static final java.lang.String getTimeExtension(long date)
DateUtils
date
- a Date.getTime() value.
public static java.lang.String[] transformDate(java.lang.String dateTime)
DateUtils
dateTime
- string value of Date.getTime().
public static java.util.Vector getVectorFromString(java.lang.String toElaborate, java.lang.String separator)
toElaborate
- the string to elaborate.separator
- the string used to separate values in toElaborate.
public static java.util.ArrayList getArrayListFromString(java.lang.String toElaborate, java.lang.String separator)
toElaborate
- the string to elaborate.separator
- the string used to separate values in toElaborate.
public static java.util.ArrayList getArrayListFromStringArray(java.lang.String[] toElaborate)
toElaborate
- the array string to elaborate.
public static java.lang.String[] getStringArrayFromArrayList(java.util.ArrayList toElaborate)
toElaborate
- the array list to elaborate.
public static java.util.Vector getVectorFromStringArray(java.lang.String[] toElaborate)
toElaborate
- the array string to elaborate.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |