org.semanticdesktop.aperture.subcrawler.base
Class AbstractArchiverSubCrawler.ArchiveInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.semanticdesktop.aperture.subcrawler.base.AbstractArchiverSubCrawler.ArchiveInputStream
All Implemented Interfaces:
Closeable
Direct Known Subclasses:
TarSubCrawler.TarSubCrawlerInputStream, ZipSubCrawler.ZipSubCrawlerInputStream
Enclosing class:
AbstractArchiverSubCrawler

protected abstract static class AbstractArchiverSubCrawler.ArchiveInputStream
extends FilterInputStream

An input stream encapsulating an archive stream with compressed data


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
AbstractArchiverSubCrawler.ArchiveInputStream(InputStream in)
          The main constructor
 
Method Summary
abstract  void closeEntry()
          closes the current archive entry
abstract  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

AbstractArchiverSubCrawler.ArchiveInputStream

public AbstractArchiverSubCrawler.ArchiveInputStream(InputStream in)
The main constructor

Parameters:
in - the input stream to be wrapped
Method Detail

getNextEntry

public abstract AbstractArchiverSubCrawler.ArchiveEntry getNextEntry()
                                                              throws IOException
Returns the next archive entry

Returns:
the next archive entry or null if the end of the stream has been reached
Throws:
IOException - if something goes wrong

closeEntry

public abstract void closeEntry()
                         throws IOException
closes the current archive entry

Throws:
IOException - if something goes wrong


Copyright © 2010 Aperture Development Team. All Rights Reserved.