We have this use case where we would like to compress and store objects (in-memory) and decompress them as and when required.
The data we want to compress is quite
The best compression technology I know is ZIP. Java supports ZipStream. All you need is to serialize your object into byte array and then zip it.
Tips: Use ByteArrayOutputStream, DataStream, ZipOutputStream.