Here you can find the source of decompressObject(byte[] bytes)
private static Object decompressObject(byte[] bytes) throws IOException, ClassNotFoundException
//package com.java2s; //License from project: Open Source License import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.util.zip.InflaterInputStream; public class Main { private static Object decompressObject(byte[] bytes) throws IOException, ClassNotFoundException { return (new ObjectInputStream(new InflaterInputStream(new ByteArrayInputStream(bytes)))).readObject(); }// w w w. j a v a2 s .c o m }