@Retention(value=RUNTIME) @Target(value={FIELD,PARAMETER}) public @interface Base85
Base85, also known as Ascii85, is a binary-to-ASCII encoding scheme optimized for encoding binary data in a compact ASCII string format. It's particularly useful for transporting binary data over text-based protocols where binary formats are not supported.
When this annotation is applied to a field or parameter, it provides a hint about the expected format and representation of the data, allowing for potential encoding and decoding operations based on Base85.
The provided INSTANCE is a default converter that can be used for operations relevant to the Base85 format.
Example:
@Base85
private long encodedData;
LongConverter,
Base85LongConverterpublic static final LongConverter INSTANCE
Base85LongConverter specifically configured for Base85 conversions.
This converter uses a character set defined by the Base85LongConverter to represent Base85 encoded data.Copyright © 2024. All rights reserved.