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