com.softicar.platform.common.io.zip.entry.ZipFileEntryIterable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.io.zip.entry;
import java.io.File;
import java.util.Iterator;
public class ZipFileEntryIterable implements Iterable {
private final File zipFile;
private boolean onlyFiles;
public ZipFileEntryIterable(File zipFile) {
this.zipFile = zipFile;
this.onlyFiles = false;
}
public ZipFileEntryIterable setOnlyFiles(boolean onlyFiles) {
this.onlyFiles = onlyFiles;
return this;
}
@Override
public Iterator iterator() {
return new ZipFileEntryIterator(zipFile).setOnlyFiles(onlyFiles);
}
}