|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jrunx.iiop.security.TypeUtil
Datatype management utility methods
| Constructor Summary | |
TypeUtil()
|
|
| Method Summary | |
static java.lang.String |
addCommas(float f)
Deprecated. Use standard java.* APIs which create the correct localized number format. |
static java.lang.String |
addCommas(java.lang.String numStr)
Deprecated. Use standard java.* APIs which create the correct localized number format. |
static java.lang.String |
arrayToString(java.lang.String[] from,
java.lang.String separator)
Convert an array of strings to a single line with elements separated by the given separator. |
static java.lang.reflect.Method |
getMethod(java.lang.Class declaringClass,
java.lang.ClassLoader loader,
java.lang.String name,
java.lang.String[] paramClassNames)
|
static java.util.Set |
getSuperInterfaces(java.lang.ClassLoader cl,
java.lang.String className,
java.lang.String baseClassName)
Get all super-interfaces of a class, excluding the given base interface. |
static int |
hashCode(java.lang.String s)
Work around a performance bug in String.hashCode() for strings longer than sixteen characters, by calculating a (slower) hash on all the characters in the string. |
static int |
intGetBytes(int src,
byte[] buf,
int offset)
Place a byte representation of src into the byte array buf. |
static int |
intGetChars(int src,
char[] buf,
int offset)
Place a character representation of src into the buffer. |
static boolean |
isSubclassOf(java.lang.Class sub,
java.lang.Class sup)
Deprecated. Use sup.isAssignableFrom(sub) |
static java.lang.String[] |
stringToArray(java.lang.String from,
java.lang.String separator)
Convert a string of delimited strings to an array of strings. |
static java.lang.String |
truncateFloat(float f,
int digits)
Truncate a float to the required number of significant digits. |
static java.lang.String[] |
wordWrap(java.lang.String msg,
int widthInChars)
Word-wrap a string into an array of strings. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TypeUtil()
| Method Detail |
public static int intGetChars(int src,
char[] buf,
int offset)
src - - the integer to convert. Must not be Integer.MIN_VALUE.buf - - the buf to put the result inoffset - - the offset in buf to place the first digitjava.lang.IllegalArgumentException - if src is Integer.MIN_VALUE.
public static int intGetBytes(int src,
byte[] buf,
int offset)
src - - the integer to convert. Must not be Integer.MIN_VALUE.buf - - the buf to put the result inoffset - - the offset in buf to place the first digitjava.lang.IllegalArgumentException - if src is Integer.MIN_VALUE.public static int hashCode(java.lang.String s)
public static java.lang.String[] wordWrap(java.lang.String msg,
int widthInChars)
public static java.lang.String arrayToString(java.lang.String[] from,
java.lang.String separator)
join.from - the array of strings to convertseparator - the string to insert between each element
public static java.lang.String[] stringToArray(java.lang.String from,
java.lang.String separator)
split.from - the string to convertseparator - the delimiter
public static java.lang.String truncateFloat(float f,
int digits)
public static java.lang.String addCommas(float f)
public static java.lang.String addCommas(java.lang.String numStr)
public static boolean isSubclassOf(java.lang.Class sub,
java.lang.Class sup)
public static java.util.Set getSuperInterfaces(java.lang.ClassLoader cl,
java.lang.String className,
java.lang.String baseClassName)
throws java.lang.ClassNotFoundException
public static java.lang.reflect.Method getMethod(java.lang.Class declaringClass,
java.lang.ClassLoader loader,
java.lang.String name,
java.lang.String[] paramClassNames)
throws java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||