public class Base85LongConverter extends AbstractLongConverter
If you need to encode text as a long value, refer to ShortTextLongConverter.
Base85 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It uses a set of 85 printable 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,
ShortTextLongConverter| Modifier and Type | Field and Description |
|---|---|
static Base85LongConverter |
INSTANCE
Provides a readily available instance of Base85LongConverter for ease of use.
|
static int |
MAX_LENGTH
Defines the maximum length of strings that can be parsed by this converter.
|
converter| Modifier and Type | Method and Description |
|---|---|
boolean |
allSafeChars()
Indicates whether all characters in the custom Base85 character set are safe for the given output context.
|
int |
maxParseLength()
Returns the maximum number of characters that can be parsed.
|
append, append, parse, parseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEncode, allSafeChars, asString, asText, asText, forSymbols, lengthCheck, lengthCheck, maxParseLengthpublic static final int MAX_LENGTH
public static final Base85LongConverter INSTANCE
public int maxParseLength()
maxParseLength in interface LongConvertermaxParseLength in class AbstractLongConverterpublic boolean allSafeChars()
false, denoting that not all characters are safe for all contexts.Copyright © 2024. All rights reserved.