public static Map < String , ZipEntry > corporaInZipfile ( ZipFile zip ) throws IOException { Map < String , ZipEntry > result = new HashMap <> ( ) ; for ( ZipEntry e : getANNISEntry ( zip , "corpus" ) ) { String name = extractToplevelCorpusNames ( zip . getInputStream ( e ) ) ; result . put ( name , e ) ; } return result ; }
List all corpora of a ZIP file and their paths .