|
Bouncy Castle Cryptography Library 1.65 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.util.encoders.UTF8
Utilities for working with UTF-8 encodings. Decoding of UTF-8 is based on a presentation by Bob Steagall at CppCon2018 (see https://github.com/BobSteagall/CppCon2018). It uses a Deterministic Finite Automaton (DFA) to recognize and decode multi-byte code points.
Constructor Summary | |
UTF8()
|
Method Summary | |
static int |
transcodeToUTF16(byte[] utf8,
char[] utf16)
Transcode a UTF-8 encoding into a UTF-16 representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UTF8()
Method Detail |
public static int transcodeToUTF16(byte[] utf8, char[] utf16)
utf8
- A non-null array containing a well-formed UTF-8 encoding.utf16
- A non-null array, at least as long as the {@code utf8} array in order to ensure
the output will fit.
|
Bouncy Castle Cryptography Library 1.65 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |