org.basex.query.util.archive
Class ZIPIn

java.lang.Object
  extended by org.basex.query.util.archive.ArchiveIn
      extended by org.basex.query.util.archive.ZIPIn

public final class ZIPIn
extends ArchiveIn

ZIP input.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Constructor Summary
ZIPIn(java.io.InputStream is)
          Constructor.
 
Method Summary
 void close()
          Closes the stream.
 java.util.zip.ZipEntry entry()
          Returns the current entry.
 java.lang.String format()
          Returns the name of the archive format.
 boolean more()
          Indicates if the archive contains more entries.
 int read(byte[] d)
          Reads data from the archive.
 
Methods inherited from class org.basex.query.util.archive.ArchiveIn
get, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZIPIn

public ZIPIn(java.io.InputStream is)
Constructor.

Parameters:
is - input stream
Method Detail

more

public boolean more()
             throws java.io.IOException
Description copied from class: ArchiveIn
Indicates if the archive contains more entries.

Specified by:
more in class ArchiveIn
Returns:
result of check
Throws:
java.io.IOException - I/O exception

entry

public java.util.zip.ZipEntry entry()
Description copied from class: ArchiveIn
Returns the current entry.

Specified by:
entry in class ArchiveIn
Returns:
entry

read

public int read(byte[] d)
         throws java.io.IOException
Description copied from class: ArchiveIn
Reads data from the archive.

Specified by:
read in class ArchiveIn
Parameters:
d - data buffer
Returns:
number of read bytes
Throws:
java.io.IOException - I/O exception

format

public java.lang.String format()
Description copied from class: ArchiveIn
Returns the name of the archive format.

Specified by:
format in class ArchiveIn
Returns:
name

close

public void close()
Description copied from class: ArchiveIn
Closes the stream.

Specified by:
close in class ArchiveIn