Method Summary |
|
public static String | buildClassLoaderInfo(ClassLoader loader) |
public static int | computeStringHash(int hash, String s) |
public static boolean | confirmTemporaryHash(String hash, String value, long time) |
public static void | copy(InputStream in, OutputStream out) Pipe an input stream in an output stream. |
public static void | copy(InputStream in, OutputStream out, int bufferSize) Pipe an incoming stream in an outcoming stream. |
public static String | decodeXWWWFormURL(String s) |
public static String | dumpClassLoaderHierarchyInfo(ClassLoader loader) |
public static void | dumpClassLoaderHierarchyInfo(Writer writer, ClassLoader loader) |
public static void | dumpClassLoaderHierarchyInfo(Logger log, ClassLoader loader) |
public static void | dumpClassLoaderHierarchyInfo(Logger log, Level level, ClassLoader loader) |
public static String | encodeXWWWFormURL(String s) |
public static boolean | exists(URL url) |
public static byte[] | fromHexString(String hex) Returns a byte array converted from the hexadecimal format. |
public static String | generateTemporaryHash(String value, long time) |
public static boolean | isEmailValid(String address) Return true is the address is not null and matches the email validation regular expression. |
public static Iterator | iterator(Object o) |
public static Iterator | iterator(Object[] objects) |
public static byte[] | md5(String text) Computes an md5 hash of a string. |
public static String | md5AsHexString(String text) Computes an md5 hash and returns the result as a string in hexadecimal format. |
public static String | replace(String string, String pattern, String replacement) Replace occurence in a string. |
public static void | safeClose(Object closable) Close an object that implements a close() method. |
public static void | safeClose(OutputStream out) Close an output stream safely. |
public static void | safeClose(InputStream in) Close an input stream safely. |
public static void | safeClose(Reader reader) Close a reader safely. |
public static Enumeration | toEnumeration(Iterator iterator) |
public static String | toHexString(byte[] bytes) Returns a string in the hexadecimal format. |
public static List | toList(Enumeration e) |
public static List | toList(Iterator iterator) |
public static Set | toSet(Enumeration e) |
public static Set | toSet(Object[] objects) |
public static Set | toSet(Iterator iterator) |