public class Base85LongConverter extends AbstractLongConverter
Base85 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It uses a set of 85 characters to represent the data, which can result in a more compact representation compared to Base64, especially for larger data sizes.
This implementation uses a custom character set that includes punctuation, numbers, uppercase letters, lowercase letters, and special characters, ensuring a wider range of encoded values.
AbstractLongConverter| Modifier and Type | Field and Description |
|---|---|
static Base85LongConverter |
INSTANCE
Shared instance of Base85LongConverter for ease of use.
|
static int |
MAX_LENGTH
Maximum length of the parsed string.
|
converter| Modifier and Type | Method and Description |
|---|---|
boolean |
allSafeChars(WireOut wireOut)
Specifies that not all characters are safe for the given
wireOut. |
int |
maxParseLength()
Returns the maximum number of characters that can be parsed.
|
append, append, parseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEncode, asString, asText, asText, forSymbols, lengthCheck, maxParseLengthpublic static final int MAX_LENGTH
public static final Base85LongConverter INSTANCE
public int maxParseLength()
maxParseLength in interface LongConvertermaxParseLength in class AbstractLongConverterpublic boolean allSafeChars(WireOut wireOut)
wireOut.wireOut - the output for which the safety of characters is checked.false indicating not all characters are safe.Copyright © 2023. All rights reserved.