Class Strings
- java.lang.Object
-
- com.ongres.scram.common.bouncycastle.pbkdf2.Strings
-
public final class Strings extends Object
String utilities.
-
-
Constructor Summary
Constructors Constructor Description Strings()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static char[]
asCharArray(byte[] bytes)
Do a simple conversion of an array of 8 bit characters into a string.static String
fromByteArray(byte[] bytes)
Convert an array of 8 bit characters into a string.static byte[]
toUTF8ByteArray(char[] string)
static void
toUTF8ByteArray(char[] string, OutputStream sOut)
-
-
-
Method Detail
-
toUTF8ByteArray
public static byte[] toUTF8ByteArray(char[] string)
-
toUTF8ByteArray
public static void toUTF8ByteArray(char[] string, OutputStream sOut) throws IOException
- Throws:
IOException
-
fromByteArray
public static String fromByteArray(byte[] bytes)
Convert an array of 8 bit characters into a string.- Parameters:
bytes
- 8 bit characters.- Returns:
- resulting String.
-
asCharArray
public static char[] asCharArray(byte[] bytes)
Do a simple conversion of an array of 8 bit characters into a string.- Parameters:
bytes
- 8 bit characters.- Returns:
- resulting String.
-
-