- Enclosing class:
Base32
The Encoder for Crockfords's Base 32 format.
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Thanks to:
- Douglas Crockford (douglas@crockford.com)
- Version:
- $Id: Base32.java 1060 2023-09-24 19:21:40Z tquadrat $
- Since:
- 0.1.0
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.util.Base32.Encoder"
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal byte[]encode(byte[] value) Encodes the given value to Crockford's Base 32.final byte[]encode(long value) Encodes the given value to Crockford's Base 32.final byte[]Encodes the given value to Crockford's Base 32.final byte[]encode(BigInteger value) Encodes the given value to Crockford's Base 32.final StringencodeToString(byte[] value) Encodes the given value to a Crockford's Base 32 String.final StringencodeToString(long value) Encodes the given value to a Crockford's Base 32 String.final StringencodeToString(String value) Encodes the given value to a Crockford's Base 32 String.final StringencodeToString(BigInteger value) Encodes the given value to a Crockford's Base 32 String.
-
Constructor Details
-
Encoder
private Encoder()Creates a new instance ofBase32.Encoder.
-
-
Method Details
-
encode
Encodes the given value to Crockford's Base 32.
This is the converse operation to
Base32.Decoder.decode(byte[]).- Parameters:
value- The value to encode. It must be a positive number.- Returns:
- The result.
-
encode
Encodes the given value to Crockford's Base 32.
This is the converse operation to
Base32.Decoder.decodeToString(byte[]).- Parameters:
value- The value to encode.- Returns:
- The result.
-
encode
Encodes the given value to Crockford's Base 32.
This is the converse operation to
Base32.Decoder.decode(byte[]).- Parameters:
value- The value to encode.- Returns:
- The result.
-
encode
Encodes the given value to Crockford's Base 32.- Parameters:
value- The value to encode.- Returns:
- The result.
-
encodeToString
Encodes the given value to a Crockford's Base 32 String.
This is the converse operation to
Base32.Decoder.decodeToNumber(String).- Parameters:
value- The value to encode.- Returns:
- The result.
-
encodeToString
Encodes the given value to a Crockford's Base 32 String.
This is the converse operation to
Base32.Decoder.decodeToString(String).- Parameters:
value- The value to encode.- Returns:
- The result.
-
encodeToString
Encodes the given value to a Crockford's Base 32 String.
This is the converse operation to
Base32.Decoder.decodeToString(byte[]).- Parameters:
value- The value to encode.- Returns:
- The result.
-
encodeToString
Encodes the given value to a Crockford's Base 32 String.- Parameters:
value- The value to encode.- Returns:
- The result.
-
