Examples of extractAll()


Examples of net.lingala.zip4j.core.ZipFile.extractAll()

        ZipFile zipped = new ZipFile(file);
        if (zipped.isValidZipFile()) {
            File tempDir = Files.createTempDir();
            try {
                LOGGER.info("Extracting: %s to %s", file.getAbsoluteFile(), tempDir.getAbsolutePath());
                zipped.extractAll(tempDir.getAbsolutePath());

                File owlFile = findOwlFile(tempDir);
                return guessDocumentIRIFromFile(owlFile);
            } finally {
                FileUtils.deleteDirectory(tempDir);
View Full Code Here

Examples of net.lingala.zip4j.core.ZipFile.extractAll()

        ZipFile zipped = new ZipFile(file);
        if (zipped.isValidZipFile()) {
            File tempDir = Files.createTempDir();
            try {
                LOGGER.info("Extracting: %s to %s", file.getAbsoluteFile(), tempDir.getAbsolutePath());
                zipped.extractAll(tempDir.getAbsolutePath());

                File owlFile = findOwlFile(tempDir);
                importFile(owlFile, documentIRI, authorizations);
            } finally {
                FileUtils.deleteDirectory(tempDir);
View Full Code Here

Examples of net.lingala.zip4j.core.ZipFile.extractAll()

    @Override
    protected File process(File input) throws Exception {
        try {
            ZipFile zipFile = new ZipFile(input);
            zipFile.extractAll(dest.getAbsolutePath());
        } catch (ZipException e) {
            throw new ExecutionException(e, "Unable to unzip {0} to {1}", input, dest);
        }
        return dest;
    }
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.