|
1 | 1 | BlazingChain
|
2 | 2 | --
|
3 | 3 |
|
| 4 | +[](https://maven-badges.herokuapp.com/maven-central/com.github.tommyettinger/blazingchain) |
| 5 | + |
4 | 6 | This one-file library can be used to compress Java/JVM Strings with LZ-String encoding, as developed by
|
5 | 7 | [pieroxy](https://github.com/pieroxy/lz-string) for JavaScript and continued by rufushuang in a Java port.
|
6 | 8 | This code is a cleaned-up and optimized copy of rufushuang's
|
@@ -30,8 +32,19 @@ inner classes, and a few other performance tweaks, like appending to one StringB
|
30 | 32 | earlier approach of making an ArrayList of boxed Characters, appending to that, and then re-appending
|
31 | 33 | each Character to another StringBuilder. If premature optimization is the root of all evil, I need an
|
32 | 34 | exorcist, but thankfully the code is small enough that not too much extra work was needed in the
|
33 |
| -original Java code. Documentation should be added at some point, but the method names are straightforward |
34 |
| -and the API surface is small at 8 methods, half for compression and half for decompression. |
| 35 | +original Java code. Javadocs are available in the code and on Maven Central, but the method names are |
| 36 | +clear and the API surface is small at 8 methods, half for compression and half for decompression. |
| 37 | + |
| 38 | +Usage |
| 39 | +--- |
| 40 | + |
| 41 | +You can get this version (which should be compatible with lz-string 1.4.4) |
| 42 | +[using this info on Maven Central](http://search.maven.org/#artifactdetails%7Ccom.github.tommyettinger%7Cblazingchain%7C1.4.4%7Cjar). |
| 43 | +That page provides dependency info for many build tools including Maven, Gradle, Ivy, SBT, and Lein. |
| 44 | +There should be a release on GitHub as well. |
| 45 | + |
| 46 | +Other |
| 47 | +--- |
35 | 48 |
|
36 | 49 | The name is a play on the LZ in Blazing and LZ-String, and Chain being a String-like object, but is also
|
37 | 50 | a reference to [an obscure, no-longer-canon group](http://starwars.wikia.com/wiki/Blazing_Chain) from
|
|
0 commit comments