org.crsh.util
Class ZipIterator

java.lang.Object
  extended by org.crsh.util.ZipIterator
All Implemented Interfaces:
Closeable

public abstract class ZipIterator
extends Object
implements Closeable

Author:
Julien Viet

Constructor Summary
ZipIterator()
           
 
Method Summary
(package private) static ZipIterator create(File file)
           
(package private) static ZipIterator create(InputStream in)
           
static ZipIterator create(URL url)
           
abstract  InputStreamFactory getStreamFactory()
          Return a stream factory for the current entry.
abstract  boolean hasNext()
           
abstract  ZipEntry next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.Closeable
close
 

Constructor Detail

ZipIterator

public ZipIterator()
Method Detail

create

public static ZipIterator create(URL url)
                          throws IOException,
                                 URISyntaxException
Throws:
IOException
URISyntaxException

create

static ZipIterator create(File file)
                   throws IOException
Throws:
IOException

create

static ZipIterator create(InputStream in)
                   throws IOException
Throws:
IOException

hasNext

public abstract boolean hasNext()
                         throws IOException
Throws:
IOException

next

public abstract ZipEntry next()
                       throws IOException
Throws:
IOException

getStreamFactory

public abstract InputStreamFactory getStreamFactory()
                                             throws IOException
Return a stream factory for the current entry.

Returns:
the stream factory
Throws:
IOException - anything that would prevent to obtain a stream factory


Copyright © 2015 eXo Platform SAS. All Rights Reserved.