Open SiteSearch 4.1.1
Final

ORG.oclc.util
Class Util

java.lang.Object
  |
  +--ORG.oclc.util.Util

public class Util
extends Object


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

Util

public Util()
Method Detail

byteArrayToString

public static String byteArrayToString(byte[] array)

hexDump

public static String hexDump(String data,
                             int len,
                             String label)

hexDump

public static String hexDump(byte[] data,
                             int len,
                             String label)

byteArrayToString

public static String byteArrayToString(byte[] array,
                                       int offset,
                                       int length)

collapseString

public static final String collapseString(String data,
                                          String collapse)
Collapse a String from an input String.
Parameters:
data - the input String
collapse - the data to collapse from the string.
Returns:
String

replaceString

public static final String replaceString(String data,
                                         String original,
                                         String newdata)
Replaces a String with another String.
Parameters:
data - the input String
original - the data to replace from the string.
newdata - the data to replace it with.
Returns:
String

stackTrace

public static final String stackTrace()
Returns a stack trace of the current threads
Returns:
String

stackTrace

public static final String stackTrace(String str)
Returns a stack trace of the current threads titled with the input string.
Parameters:
str - the title of the trace.
Returns:
String

getUTF8CharToByteConverter

public static final sun.io.CharToByteConverter getUTF8CharToByteConverter()
Get a CharToByteConverter from the pool or create a new one if there aren't any available from the pool.

freeUTF8CharToByteConverter

public static final void freeUTF8CharToByteConverter(sun.io.CharToByteConverter conv)
Release a UTF8 CharToByteConverter back to the pool.
Parameters:
conv - the converter

getUTF8ByteToCharConverter

public static final sun.io.ByteToCharConverter getUTF8ByteToCharConverter()
Get a ByteToCharConverter from the pool or create a new one if there aren't any available from the pool.

freeUTF8ByteToCharConverter

public static final void freeUTF8ByteToCharConverter(sun.io.ByteToCharConverter conv)
Release a ByteToCharConverter back to the pool.
Parameters:
conv - the converter

getUTF8Bytes

public static final byte[] getUTF8Bytes(String s)

Open SiteSearch 4.1.1
Final