Package java.util.zip

Examples of java.util.zip.InflaterOutputStream


     * @throws Base64DecodingException
     */
    public static byte[] decompressAndDecode(byte[] bytes) throws IOException, Base64DecodingException {
        ByteArrayOutputStream stream2 = new ByteArrayOutputStream();
        Inflater decompresser = new Inflater(true);
        InflaterOutputStream inflaterOutputStream = new InflaterOutputStream(stream2, decompresser);
        inflaterOutputStream.write(bytes);
        inflaterOutputStream.close();
        byte[] output2 = stream2.toByteArray();

        return Base64.decode(output2);
    }
View Full Code Here

TOP

Related Classes of java.util.zip.InflaterOutputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.