Package com.emc.vipr.transform.compression

Examples of com.emc.vipr.transform.compression.LZMAOutputStream


        File fin = new File(args[0]);
        File fout = new File(args[1]);
       
        try {
            FileInputStream fis = new FileInputStream(fin);
            LZMAOutputStream compOut = new LZMAOutputStream(new BufferedOutputStream(new FileOutputStream(fout)), 4);
           
            byte[] buffer = new byte[4096];
            int c = 0;
            while((c = fis.read(buffer)) != -1) {
                compOut.write(buffer, 0, c);
            }
           
            fis.close();
            compOut.close();
            compOut = null;
            Runtime.getRuntime().gc();
           
            System.out.printf("Done.  Input size %d compressed size %d\n", fin.length(), fout.length());
           
View Full Code Here

TOP

Related Classes of com.emc.vipr.transform.compression.LZMAOutputStream

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.