Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.common.utils
Class ZipIterator

java.lang.Object
  extended by 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

Constructor Summary
ZipIterator(File file)
           
ZipIterator(File file, ZipEntryFilter filter)
           
ZipIterator(InputStream in)
           
ZipIterator(InputStream in, ZipEntryFilter filter)
           
ZipIterator(URL url)
           
ZipIterator(URL url, ZipEntryFilter filter)
           
ZipIterator(ZipInputStream zin, ZipEntryFilter filter)
           
 
Method Summary
 void close()
           
 InputStream getInputStream()
           
 ZipEntry getNextEntry()
           
 boolean hasNext()
           
 ZipEntry next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.