Examples of decompressAndClose()


Examples of com.netflix.priam.compress.SnappyCompression.decompressAndClose()

    @Test
    public void decompress() throws FileNotFoundException, IOException
    {
        SnappyCompression compress = new SnappyCompression();
        compress.decompressAndClose(new FileInputStream("/tmp/test1.snp"), new FileOutputStream("/tmp/compress-test-out-2.txt"));
        String md1 = SystemUtils.md5(new File("/tmp/compress-test.txt"));
        String md2 = SystemUtils.md5(new File("/tmp/compress-test-out-2.txt"));
        assertEquals(md1, md2);
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.