@Test void testIteratorFromZipFileWithFolderWithBom() throws IOException { File zipFile = new ClassPathResource("zipFileWithFolderWithBom.zip").getFile(); CsvIterator it = new CsvIterator(zipFile, "testDataWithBom", null, null, entityType); assertEquals(newLinkedHashSet(asList("col1", "col2")), it.getColNamesMap().keySet()); assertEquals(5, size(it)); }
Map<String, Integer> getColNamesMap() { return colNamesMap; }
CsvIterator implements CloseableIterator<Entity> { Map<String, Integer> getColNamesMap() { return colNamesMap; } }
CsvIterator implements CloseableIterator<Entity> { Map<String, Integer> getColNamesMap() { return colNamesMap; } CsvIterator(
      File file, String repositoryName, List<CellProcessor> cellProcessors, Character separator);   CsvIterator(
      File file,
      String repositoryName,
      List<CellProcessor> cellProcessors,
      Character separator,
      EntityType entityType); }
CsvIterator implements CloseableIterator<Entity> { Map<String, Integer> getColNamesMap() { return colNamesMap; } CsvIterator(
      File file, String repositoryName, List<CellProcessor> cellProcessors, Character separator);   CsvIterator(
      File file,
      String repositoryName,
      List<CellProcessor> cellProcessors,
      Character separator,
      EntityType entityType); @Override boolean hasNext(); @Override Entity next(); @Override void remove(); @Override void close(); }
CsvIterator implements CloseableIterator<Entity> { Map<String, Integer> getColNamesMap() { return colNamesMap; } CsvIterator(
      File file, String repositoryName, List<CellProcessor> cellProcessors, Character separator);   CsvIterator(
      File file,
      String repositoryName,
      List<CellProcessor> cellProcessors,
      Character separator,
      EntityType entityType); @Override boolean hasNext(); @Override Entity next(); @Override void remove(); @Override void close();  }