Class Strings
java.lang.Object
com.ongres.scram.common.bouncycastle.pbkdf2.Strings
String utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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)
-
Constructor Details
-
Strings
public Strings()
-
-
Method Details
-
toUTF8ByteArray
public static byte[] toUTF8ByteArray(char[] string) -
toUTF8ByteArray
- Throws:
IOException
-
fromByteArray
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.
-