Package org.eclipse.sisu.space
Class ZipEntryIterator
java.lang.Object
org.eclipse.sisu.space.ZipEntryIterator
Iterator
that iterates over named entries inside JAR or ZIP resources.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String[]
getEntryNames
(ZipFile zipFile) Returns a string array listing the entries in the given zip file.private static String[]
getEntryNames
(ZipInputStream zipStream) Returns a string array listing the entries in the given zip stream.boolean
hasNext()
next()
void
remove()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
entryNames
-
index
private int index
-
-
Constructor Details
-
ZipEntryIterator
ZipEntryIterator(URL url)
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
getEntryNames
Returns a string array listing the entries in the given zip file.- Parameters:
zipFile
- The zip file- Returns:
- Array of entry names
- Throws:
IOException
-
getEntryNames
Returns a string array listing the entries in the given zip stream.- Parameters:
zipStream
- The zip stream- Returns:
- Array of entry names
- Throws:
IOException
-