com.softicar.platform.common.core.java.jar.JarFileEntryIterable 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.core.java.jar;
import java.io.File;
import java.util.Iterator;
import java.util.stream.Stream;
import java.util.stream.StreamSupport;
public class JarFileEntryIterable implements Iterable {
private final File file;
public JarFileEntryIterable(File file) {
this.file = file;
}
@Override
public Iterator iterator() {
return new JarFileEntryIterator(file);
}
public Stream stream() {
return StreamSupport.stream(spliterator(), false);
}
}