com.ibm.security.certclient.util

Class PkString



  • public class PkString
    extends Object
    String utility routines.
    Author:
    Rod Mancisidor
    • 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.

© Copyright IBM Corp. 1998, 2021 All Rights Reserved.