Java Decompress Byte Array decompressObject(byte[] bytes)

Here you can find the source of decompressObject(byte[] bytes)

Description

decompress Object

License

Open Source License

Declaration

private static Object decompressObject(byte[] bytes) throws IOException, ClassNotFoundException 

Method Source Code

//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
}

Related

  1. decompressData(byte[] compressedInput)
  2. decompressFolderByteArray(byte[] folderAsCompressedArray, File unzippedLocation)
  3. decompressGzip(byte[] compressed)
  4. decompressGZIP(byte[] data)
  5. decompressGzipByteArray(byte[] compressedByteArray)
  6. decompressString(byte[] compressed)
  7. decompressString(byte[] compressedData)
  8. decompressString(byte[] compressedString)
  9. decompressStringFromByteArray(byte[] compressedString)