Package org.wildfly.common.codec
Class Base64Alphabet
java.lang.Object
org.wildfly.common.codec.Alphabet
org.wildfly.common.codec.Base64Alphabet
A base-64 alphabet.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Base64AlphabetThe standard RFC 4648 base-64 alphabet. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBase64Alphabet(boolean littleEndian) Construct a new instance. -
Method Summary
Methods inherited from class org.wildfly.common.codec.Alphabet
isLittleEndian
-
Field Details
-
STANDARD
The standard RFC 4648 base-64 alphabet.
-
-
Constructor Details
-
Base64Alphabet
protected Base64Alphabet(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 6-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.
-