|
Firefish 0.5.10 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.lbl.dsd.p2pio.util.Util
Miscellaneous static utility functions.
Method Summary | |
static String |
file2String(File file)
|
static String |
file2String(InputStream in)
|
static String |
file2String(String fileName)
|
static String |
file2StringFromClasspath(String fileName)
|
static String |
getClassName(Class clazz)
Returns the unqualified class name of the given class (omitting package name). |
static String |
getClassName(Object obj)
Returns the unqualified class name of the given object (omitting package name). |
static String |
getLowerClassName(Class clazz)
Returns the unqualified class name of the given object (omitting package name), with first character in lower case. |
static String |
getLowerClassName(Object obj)
Returns the unqualified class name of the given object (omitting package name), with first character in lower case. |
static InputStream |
getResourceAsStream(String fileName)
|
static boolean |
isWindows()
|
static void |
sleep(int msecs)
Puts the current thread asleep for the given number of milliseconds. |
static void |
string2File(String input,
OutputStream out)
|
static void |
string2File(String input,
String fileName)
|
static String |
toString(Map map)
|
static String |
toString(Throwable throwable)
Returns the stack trace of a Throwable as a String. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static String file2String(InputStream in) throws IOException
IOException
public static String file2String(File file) throws IOException
IOException
public static String file2String(String fileName) throws IOException
IOException
public static String file2StringFromClasspath(String fileName) throws IOException
IOException
public static void string2File(String input, String fileName) throws IOException
IOException
public static void string2File(String input, OutputStream out) throws IOException
IOException
public static InputStream getResourceAsStream(String fileName)
public static String toString(Throwable throwable)
public static String toString(Map map)
public static String getClassName(Object obj)
public static String getClassName(Class clazz)
public static String getLowerClassName(Class clazz)
public static String getLowerClassName(Object obj)
public static boolean isWindows()
public static void sleep(int msecs)
|
Firefish 0.5.10 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |