It is really inconvenient when decompress data now.
Something we just need the data to be compressed and decompressed later, we do not really care the data is standard or could be decompressed by other application.
I think add a mothed compressWithLength to return the compressed data in byte[] and add four byte as Integer to store the length of original data. Which cause the result 4 bytes longer. But it worth it as it makes code more clean and easy.
Hi,
It is really inconvenient when decompress data now.
Something we just need the data to be compressed and decompressed later, we do not really care the data is standard or could be decompressed by other application.
I think add a mothed compressWithLength to return the compressed data in byte[] and add four byte as Integer to store the length of original data. Which cause the result 4 bytes longer. But it worth it as it makes code more clean and easy.
Thanks!