com.ibm.security.certclient.util
Class PkString
- java.lang.Object
-
- com.ibm.security.certclient.util.PkString
-
public class PkString extends Object
String utility routines.- Author:
- Rod Mancisidor
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static Stringjoin(Object[] objs, String separator)Returns a string that is the result of joining each element of objs (as a String) with separator.static Stringjoin(String[] strs, String separator)Returns a string that is the result of joining each element of strs with separator.static String[]split(String str, String separator)Returns an array of strings that results from splitting str using separator.static StringtoString(byte[] utf)Returns the String that corresponds to the UTF-8 byte array utf.static StringtoString(byte[] utf, int offset, int length)Returns the String that corresponds to the UTF-8 byte array utf from offset to length.static byte[]toUtf(String unicode)Returns the UTF-8 byte array representation of unicode.static String[]trim(String[] strs)Applies the trim method to each element of strs array, returns resulting array.
-
-
-
Method Detail
-
split
public static String[] split(String str, String separator)
Returns an array of strings that results from splitting str using separator.
-
join
public static String join(Object[] objs, String separator)
Returns a string that is the result of joining each element of objs (as a String) with separator.
-
join
public static String join(String[] strs, String separator)
Returns a string that is the result of joining each element of strs with separator.
-
trim
public static String[] trim(String[] strs)
Applies the trim method to each element of strs array, returns resulting array.
-
toString
public static String toString(byte[] utf)
Returns the String that corresponds to the UTF-8 byte array utf.
-
toString
public static String toString(byte[] utf, int offset, int length)
Returns the String that corresponds to the UTF-8 byte array utf from offset to length.
-
toUtf
public static byte[] toUtf(String unicode)
Returns the UTF-8 byte array representation of unicode.
-
-