All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.softicar.platform.common.io.zip.entry.ZipFileEntryIterable Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy