use of com.mucommander.commons.file.archive.WrapperArchiveEntryIterator in project mucommander by mucommander.
the class SevenZipArchiveFile method getEntryIterator.
@Override
public ArchiveEntryIterator getEntryIterator() throws IOException {
final IInArchive sevenZipFile = openSevenZipFile();
try {
int nbEntries = sevenZipFile.size();
Vector<ArchiveEntry> entries = new Vector<ArchiveEntry>();
for (int i = 0; i < nbEntries; i++) entries.add(createArchiveEntry(sevenZipFile.getEntry(i)));
return new WrapperArchiveEntryIterator(entries.iterator());
} finally {
/*try { sevenZipFile.close(); }
catch(IOException e) {
// Not much we can do about it
}*/
}
}
Aggregations