private void loadZIPFile(TableDefinition tableDef, File file) throws IOException {
        try (ZipFile zipFile = new ZipFile(file)) {
            Enumeration<? extends ZipEntry> zipEntries = zipFile.entries();
            while (zipEntries.hasMoreElements()) {
                ZipEntry zipEntry = zipEntries.nextElement();
                if (!zipEntry.getName().toLowerCase().endsWith(".csv")) {
                    m_logger.warn("Skipping zip file entry: " + zipEntry.getName());
                    continue;
                }
                try (InputStream zipEntryStream = zipFile.getInputStream(zipEntry)) {
                    BufferedReader reader = new BufferedReader(new InputStreamReader(zipEntryStream, Utils.UTF8_CHARSET));
                    loadCSVFromReader(tableDef, zipEntry.getName(), zipEntry.getSize(), reader);
                }
            }
        }
    }
private void loadZIPFile ( TableDefinition tableDef , File file ) throws IOException { try ( ZipFile zipFile = new ZipFile ( file ) ) { Enumeration < ? extends ZipEntry > zipEntries = zipFile . entries ( ) ; while ( zipEntries . hasMoreElements ( ) ) { ZipEntry zipEntry = zipEntries . nextElement ( ) ; if ( ! zipEntry . getName ( ) . toLowerCase ( ) . endsWith ( ".csv" ) ) { m_logger . warn ( "Skipping zip file entry: " + zipEntry . getName ( ) ) ; continue ; } try ( InputStream zipEntryStream = zipFile . getInputStream ( zipEntry ) ) { BufferedReader reader = new BufferedReader ( new InputStreamReader ( zipEntryStream , Utils . UTF8_CHARSET ) ) ; loadCSVFromReader ( tableDef , zipEntry . getName ( ) , zipEntry . getSize ( ) , reader ) ; } } } }
loadFolder