final class ZipEntryIterator
extends java.lang.Object
implements java.util.Iterator<java.lang.String>
Iterator that iterates over named entries inside JAR or ZIP resources.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String[] |
entryNames |
private int |
index |
| Constructor and Description |
|---|
ZipEntryIterator(java.net.URL url) |
| Modifier and Type | Method and Description |
|---|---|
private static java.lang.String[] |
getEntryNames(java.util.zip.ZipFile zipFile)
Returns a string array listing the entries in the given zip file.
|
private static java.lang.String[] |
getEntryNames(java.util.zip.ZipInputStream zipStream)
Returns a string array listing the entries in the given zip stream.
|
boolean |
hasNext() |
java.lang.String |
next() |
void |
remove() |
public boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.String>public java.lang.String next()
next in interface java.util.Iterator<java.lang.String>public void remove()
remove in interface java.util.Iterator<java.lang.String>private static java.lang.String[] getEntryNames(java.util.zip.ZipFile zipFile)
throws java.io.IOException
zipFile - The zip filejava.io.IOExceptionprivate static java.lang.String[] getEntryNames(java.util.zip.ZipInputStream zipStream)
throws java.io.IOException
zipStream - The zip streamjava.io.IOException