Package ch.akuhn.hapax.util

Examples of ch.akuhn.hapax.util.Ziperator$Iter


    }

    private void smartImportZipArchive(File file, String... extensions) {
        // first try to get files from nested sources
        Entry nestedSources = null;
        for (Entry each: new Ziperator(file)) {
            if (nestedSources == null && each.isSourceArchive()) nestedSources = each;
            if (each.parent != null && each.parent == nestedSources) {
                for (String ext: extensions) {
                    if (each.entry.getName().endsWith(ext)) {
                        corpus.putDocument(each.toString(), new Terms(each.in));
View Full Code Here

TOP

Related Classes of ch.akuhn.hapax.util.Ziperator$Iter

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.