// Path: kbox.apple/src/main/java/org/aksw/kbox/apple/util/UncompressUtil.java
// public class UncompressUtil {
// 	public static void unpack(InputStream is, File output) throws IOException, CompressorException {
// 	    try(BufferedInputStream bis = new BufferedInputStream(is)) {
// 		    try(CompressorInputStream input = new CompressorStreamFactory().createCompressorInputStream(bis)) {
// 			    try(OutputStream out = new FileOutputStream(output)) {
// 			    	IOUtils.copy(input, out);
// 			    }
// 		    }
// 	    }
// 	}
// }


import java.io.File;
import java.io.InputStream;
import org.aksw.kbox.apple.util.UncompressUtil;
package org.aksw.kbox.apple;



/**
 * 
 * @author {@linkplain http://emarx.org}
 *
 */
public class BZ2AppInstall extends AbstractMultiSourceAppInstall {
	public void install(InputStream source, File target) throws Exception {
// Path: kbox.apple/src/main/java/org/aksw/kbox/apple/util/UncompressUtil.java
// public class UncompressUtil {
// 	public static void unpack(InputStream is, File output) throws IOException, CompressorException {
// 	    try(BufferedInputStream bis = new BufferedInputStream(is)) {
// 		    try(CompressorInputStream input = new CompressorStreamFactory().createCompressorInputStream(bis)) {
// 			    try(OutputStream out = new FileOutputStream(output)) {
// 			    	IOUtils.copy(input, out);
// 			    }
// 		    }
// 	    }
// 	}
// }


// Path: kbox.apple/src/main/java/org/aksw/kbox/apple/BZ2AppInstall.java
import java.io.File;
import java.io.InputStream;
import org.aksw.kbox.apple.util.UncompressUtil;

package org.aksw.kbox.apple;



/**
 * 
 * @author {@linkplain http://emarx.org}
 *
 */
public class BZ2AppInstall extends AbstractMultiSourceAppInstall {
	public void install(InputStream source, File target) throws Exception {
		UncompressUtil.unpack(source, target);