com.ibm.security.certclient.util

Class PkString

  1. java.lang.Object
  2. extended bycom.ibm.security.certclient.util.PkString

  1. public class PkString
  2. extends Object
String utility routines.
Author:
Rod Mancisidor

Method Summary

Modifier and Type Method and Description
  1. static
  2. String
join(Object[] objs,String separator)
Returns a string that is the result of joining each element of objs (as a String) with separator.
  1. static
  2. String
join(String[] strs,String separator)
Returns a string that is the result of joining each element of strs with separator.
  1. static
  2. String[]
split(String str,String separator)
Returns an array of strings that results from splitting str using separator.
  1. static
  2. String
toString(byte[] utf)
Returns the String that corresponds to the UTF-8 byte array utf.
  1. static
  2. String
toString(byte[] utf,int offset,int length)
Returns the String that corresponds to the UTF-8 byte array utf from offset to length.
  1. static
  2. byte[]
toUtf(String unicode)
Returns the UTF-8 byte array representation of unicode.
  1. static
  2. String[]
trim(String[] strs)
Applies the trim method to each element of strs array, returns resulting array.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

split

  1. public static String[] split(String str,
  2. String separator)
Returns an array of strings that results from splitting str using separator.

join

  1. public static String join(Object[] objs,
  2. String separator)
Returns a string that is the result of joining each element of objs (as a String) with separator.

join

  1. public static String join(String[] strs,
  2. String separator)
Returns a string that is the result of joining each element of strs with separator.

trim

  1. public static String[] trim(String[] strs)
Applies the trim method to each element of strs array, returns resulting array.

toString

  1. public static String toString(byte[] utf)
Returns the String that corresponds to the UTF-8 byte array utf.

toString

  1. public static String toString(byte[] utf,
  2. int offset,
  3. int length)
Returns the String that corresponds to the UTF-8 byte array utf from offset to length.

toUtf

  1. public static byte[] toUtf(String unicode)
Returns the UTF-8 byte array representation of unicode.