org.basex.query.util.archive
Class GZIPIn

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

public final class GZIPIn
extends ArchiveIn

GZIP reader.

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

Constructor Summary
GZIPIn(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

GZIPIn

public GZIPIn(java.io.InputStream is)
       throws java.io.IOException
Constructor.

Parameters:
is - input stream
Throws:
java.io.IOException - I/O exception
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