Package org.wildfly.common.codec
Class Base32Alphabet
java.lang.Object
org.wildfly.common.codec.Alphabet
org.wildfly.common.codec.Base32Alphabet
A base-32 alphabet.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Base32AlphabetThe standard RFC 4648 base-32 alphabet mapped to lowercase.static final Base32AlphabetThe standard RFC 4648 base-32 alphabet. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBase32Alphabet(boolean littleEndian) Construct a new instance. -
Method Summary
Methods inherited from class org.wildfly.common.codec.Alphabet
isLittleEndian
-
Field Details
-
Constructor Details
-
Base32Alphabet
protected Base32Alphabet(boolean littleEndian) Construct a new instance.- Parameters:
littleEndian-trueif the alphabet is little-endian (LSB first),falseotherwise
-
-
Method Details
-
encode
public abstract int encode(int val) Encode the given 5-bit value to a code point. -
decode
public abstract int decode(int codePoint) Decode the given code point. If the code point is not valid, -1 is returned.
-