org.gudy.bouncycastle.util
Class Strings

java.lang.Object
  extended by org.gudy.bouncycastle.util.Strings

public final class Strings
extends Object


Constructor Summary
Strings()
           
 
Method Summary
static String fromUTF8ByteArray(byte[] bytes)
           
static String[] split(String input, char delimiter)
           
static byte[] toByteArray(String string)
           
static String toLowerCase(String string)
          A locale independent version of toLowerCase.
static String toUpperCase(String string)
          A locale independent version of toUpperCase.
static byte[] toUTF8ByteArray(String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Strings

public Strings()
Method Detail

fromUTF8ByteArray

public static String fromUTF8ByteArray(byte[] bytes)

toUTF8ByteArray

public static byte[] toUTF8ByteArray(String string)

toUpperCase

public static String toUpperCase(String string)
A locale independent version of toUpperCase.

Parameters:
string - input to be converted
Returns:
a US Ascii uppercase version

toLowerCase

public static String toLowerCase(String string)
A locale independent version of toLowerCase.

Parameters:
string - input to be converted
Returns:
a US ASCII lowercase version

toByteArray

public static byte[] toByteArray(String string)

split

public static String[] split(String input,
                             char delimiter)