org.nuxeo.common.utils
Class ZipIterator
java.lang.Object
org.nuxeo.common.utils.ZipIterator
- All Implemented Interfaces:
- java.util.Iterator<java.util.zip.ZipEntry>
public class ZipIterator
- extends java.lang.Object
- implements java.util.Iterator<java.util.zip.ZipEntry>
An iterator over the entries in a ZIP file.
The iterator support filtering using ZipEntryFilter
- Author:
- Bogdan Stefanescu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipIterator
public ZipIterator(java.util.zip.ZipInputStream zin,
ZipEntryFilter filter)
throws java.io.IOException
- Throws:
java.io.IOException
ZipIterator
public ZipIterator(java.net.URL url)
throws java.io.IOException
- Throws:
java.io.IOException
ZipIterator
public ZipIterator(java.net.URL url,
ZipEntryFilter filter)
throws java.io.IOException
- Throws:
java.io.IOException
ZipIterator
public ZipIterator(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
ZipIterator
public ZipIterator(java.io.File file,
ZipEntryFilter filter)
throws java.io.IOException
- Throws:
java.io.IOException
ZipIterator
public ZipIterator(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
ZipIterator
public ZipIterator(java.io.InputStream in,
ZipEntryFilter filter)
throws java.io.IOException
- Throws:
java.io.IOException
getNextEntry
public java.util.zip.ZipEntry getNextEntry()
throws java.io.IOException
- Throws:
java.io.IOException
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator<java.util.zip.ZipEntry>
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator<java.util.zip.ZipEntry>
next
public java.util.zip.ZipEntry next()
- Specified by:
next
in interface java.util.Iterator<java.util.zip.ZipEntry>
getInputStream
public java.io.InputStream getInputStream()
close
public void close()
Copyright © 2010 Nuxeo SAS. All Rights Reserved.