7-Zip & Java - how do I get the value of percentage completed?
===

I wrote a Java code that sends files for compression using LzmaAlone.java.

Sending one file is not a problem, but for sending numerous files I need some confirmation that the previous file finished compressing. I also need to create a progress bar for each file being compressed... How can I do it?

Thanks!

  

      Compressor c = new Compressor();
        		try {
        			c.compress(original, newfile);
        		} catch (Exception e) {
        			// TODO Auto-generated catch block
        			e.printStackTrace();
        		}
.............

    public void compress(String filename, String newPath) throws Exception {
    			
    		try {
    			LzmaAlone.main(new String[]{ "e", filename, newPath});
    			
    		} catch (Exception e) {
    			throw e;
    		}
    	}