|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ORG.oclc.util.Util
Constructor Summary | |
Util()
|
Method Summary | |
static String |
byteArrayToString(byte[] array)
|
static String |
byteArrayToString(byte[] array,
int offset,
int length)
|
static String |
collapseString(String data,
String collapse)
Collapse a String from an input String. |
static void |
freeUTF8ByteToCharConverter(sun.io.ByteToCharConverter conv)
Release a ByteToCharConverter back to the pool. |
static void |
freeUTF8CharToByteConverter(sun.io.CharToByteConverter conv)
Release a UTF8 CharToByteConverter back to the pool. |
static byte[] |
getUTF8Bytes(String s)
|
static sun.io.ByteToCharConverter |
getUTF8ByteToCharConverter()
Get a ByteToCharConverter from the pool or create a new one if there aren't any available from the pool. |
static sun.io.CharToByteConverter |
getUTF8CharToByteConverter()
Get a CharToByteConverter from the pool or create a new one if there aren't any available from the pool. |
static String |
hexDump(byte[] data,
int len,
String label)
|
static String |
hexDump(String data,
int len,
String label)
|
static String |
replaceString(String data,
String original,
String newdata)
Replaces a String with another String. |
static String |
stackTrace()
Returns a stack trace of the current threads |
static String |
stackTrace(String str)
Returns a stack trace of the current threads titled with the input string. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Util()
Method Detail |
public static String byteArrayToString(byte[] array)
public static String hexDump(String data, int len, String label)
public static String hexDump(byte[] data, int len, String label)
public static String byteArrayToString(byte[] array, int offset, int length)
public static final String collapseString(String data, String collapse)
data
- the input Stringcollapse
- the data to collapse from the string.public static final String replaceString(String data, String original, String newdata)
data
- the input Stringoriginal
- the data to replace from the string.newdata
- the data to replace it with.public static final String stackTrace()
public static final String stackTrace(String str)
str
- the title of the trace.public static final sun.io.CharToByteConverter getUTF8CharToByteConverter()
public static final void freeUTF8CharToByteConverter(sun.io.CharToByteConverter conv)
conv
- the converterpublic static final sun.io.ByteToCharConverter getUTF8ByteToCharConverter()
public static final void freeUTF8ByteToCharConverter(sun.io.ByteToCharConverter conv)
conv
- the converterpublic static final byte[] getUTF8Bytes(String s)
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |