Package squidpony

Class ByteStringEncoding

java.lang.Object
squidpony.ByteStringEncoding

@Beta
public final class ByteStringEncoding
extends Object
An experimental variant on LZSEncoding to encode byte arrays to compressed Strings, and decode them back. This always uses UTF-16-safe encoding, which means it does not use half of all possible chars in the compressed Strings but makes sure the Strings are valid UTF-16 (so they can be written to and read from file more safely).
This class does work, since it can read back what it writes, but it still hasn't been strenuously tested, and it could probably be optimized a lot.
Created by Tommy Ettinger on 1/11/2020.