rufushuang / lz-string4java

Port javascript lz-string in JAVA version. Done some of language optimization. And a rhino side for Testing.
MIT License
46 stars 22 forks source link

Support for compressToEncodedURIComponent and decompressFromEncodedURIComponent. #2

Closed HandsTest closed 9 years ago

HandsTest commented 9 years ago

Can you import these latest methods in the lib.

Thanks

rufushuang commented 9 years ago

is it a very little step from base64 to endodedURI? just such as string replace?

ok. while the original lz-string has updated version, i will give it a try to port the latest version. in several days, maybe

rufushuang commented 9 years ago

Due to the compressToBase64 changed some from version 1.3.3(the version I port) to version 1.4.4(the version latest provide URIComponent series). So the compressed result is not just the same, some tail characters as AAA== added. endodedURI is just the same.

The tail characters does affect Base64/EncodedURIComponent decompress. I must spend more time on this.

rufushuang commented 9 years ago

DONE porting from 1.4.4, URIComponent series supported. But found version incompatible, see README.md.

Have a try!