}
}
public static void main(String[] args) throws IOException {
ResourceProvider frp = ResourcesImpl.getFileResourceProvider();
Resource src = frp.getResource("/Users/mic/temp/a");
Resource tgz = frp.getResource("/Users/mic/temp/b/a.tgz");
tgz.getParentResource().mkdirs();
Resource tar = frp.getResource("/Users/mic/temp/b/a.tar");
tar.getParentResource().mkdirs();
Resource zip = frp.getResource("/Users/mic/temp/b/a.zip");
zip.getParentResource().mkdirs();
Resource tgz1 = frp.getResource("/Users/mic/temp/b/tgz");
tgz1.mkdirs();
Resource tar1 = frp.getResource("/Users/mic/temp/b/tar");
tar1.mkdirs();
Resource zip1 = frp.getResource("/Users/mic/temp/b/zip");
zip1.mkdirs();
compressTGZ(new Resource[]{src}, tgz, -1);
compressTar(new Resource[]{src}, tar, -1);
compressZip(new Resource[]{src}, zip, null);