Java Unzip File uncompress(final InputStream inputStream)

Here you can find the source of uncompress(final InputStream inputStream)

Description

Uncompress a given byte array input.

License

LGPL

Parameter

Parameter Description
inputStream the zipped input.

Return

the uncompressed data.

Declaration

public static InputStream uncompress(final InputStream inputStream) 

Method Source Code


//package com.java2s;
//License from project: LGPL 

import java.io.InputStream;

import java.util.zip.InflaterInputStream;

public class Main {
    /**//w w  w  .  j  a v  a 2s  . c  om
     * Uncompress a given byte array input.
     * <p>
     * <p>The Decompression is ensured via Universal compression
     * algorithm (RFC 1950, RFC 1951) As specified in the EBICS
     * specification (16 Appendix: Standards and references)
     *
     * @param inputStream the zipped input.
     * @return the uncompressed data.
     */
    public static InputStream uncompress(final InputStream inputStream) {
        return new InflaterInputStream(inputStream);
    }
}

Related

  1. decompressFile(final File toDecompress, final File destinationFile)
  2. decompressFile(String inName)
  3. decompressGzip(File src, File trgt)
  4. uncompress(ByteArrayInputStream bais)
  5. uncompress(File zipFile, File folder)
  6. uncompress(final String zipFileName, final String directory)
  7. uncompress(String chemin, String tempPrefix)
  8. uncompress(String compressedValue)
  9. uncompress(String inputCompressedFile, File outputFile)