org.semanticdesktop.aperture.subcrawler.zip
Class ZipSubCrawler.ZipSubCrawlerInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.semanticdesktop.aperture.subcrawler.base.AbstractArchiverSubCrawler.ArchiveInputStream
              extended by org.semanticdesktop.aperture.subcrawler.zip.ZipSubCrawler.ZipSubCrawlerInputStream
All Implemented Interfaces:
Closeable
Enclosing class:
ZipSubCrawler

protected static class ZipSubCrawler.ZipSubCrawlerInputStream
extends AbstractArchiverSubCrawler.ArchiveInputStream

An ArchiveInputStream encapsulating a stream of ZIP-ped data


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
ZipSubCrawler.ZipSubCrawlerInputStream(InputStream in)
          Constructs a ZipSubCrawlerInputStream
 
Method Summary
 void closeEntry()
          closes the current archive entry
 AbstractArchiverSubCrawler.ArchiveEntry getNextEntry()
          Returns the next archive entry
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipSubCrawler.ZipSubCrawlerInputStream

public ZipSubCrawler.ZipSubCrawlerInputStream(InputStream in)
Constructs a ZipSubCrawlerInputStream

Parameters:
in - the stream with zipped data.
Method Detail

getNextEntry

public AbstractArchiverSubCrawler.ArchiveEntry getNextEntry()
                                                     throws IOException
Description copied from class: AbstractArchiverSubCrawler.ArchiveInputStream
Returns the next archive entry

Specified by:
getNextEntry in class AbstractArchiverSubCrawler.ArchiveInputStream
Returns:
the next archive entry or null if the end of the stream has been reached
Throws:
IOException - if something goes wrong

closeEntry

public void closeEntry()
                throws IOException
Description copied from class: AbstractArchiverSubCrawler.ArchiveInputStream
closes the current archive entry

Specified by:
closeEntry in class AbstractArchiverSubCrawler.ArchiveInputStream
Throws:
IOException - if something goes wrong


Copyright © 2010 Aperture Development Team. All Rights Reserved.