com.caucho.quercus.lib.zip
Class QuercusZipEntry

java.lang.Object
  extended by com.caucho.quercus.lib.zip.QuercusZipEntry

public class QuercusZipEntry
extends java.lang.Object


Constructor Summary
QuercusZipEntry(java.util.zip.ZipEntry zipEntry, BinaryInput binaryInput, long position)
           
 
Method Summary
 java.lang.String toString()
           
 boolean zip_entry_close()
          Closes the zip entry.
 long zip_entry_compressedsize()
          Returns the size of the compressed data.
 java.lang.String zip_entry_compressionmethod()
          Only "deflate" and "store" methods are supported.
 long zip_entry_filesize()
          Returns the file's uncompressed size.
 java.lang.String zip_entry_name()
          Returns the file name.
 boolean zip_entry_open(Env env, ZipDirectory directory)
          Opens this zip entry for reading.
 StringValue zip_entry_read(Env env, int length)
          Reads and decompresses entry's compressed data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuercusZipEntry

public QuercusZipEntry(java.util.zip.ZipEntry zipEntry,
                       BinaryInput binaryInput,
                       long position)
Method Detail

zip_entry_name

public java.lang.String zip_entry_name()
Returns the file name.


zip_entry_filesize

public long zip_entry_filesize()
Returns the file's uncompressed size.


zip_entry_open

public boolean zip_entry_open(Env env,
                              ZipDirectory directory)
Opens this zip entry for reading.


zip_entry_close

public boolean zip_entry_close()
                        throws java.io.IOException
Closes the zip entry.

Throws:
java.io.IOException

zip_entry_read

public StringValue zip_entry_read(Env env,
                                  int length)
Reads and decompresses entry's compressed data.

Returns:
decompressed BinaryValue or FALSE on error

zip_entry_compressedsize

public long zip_entry_compressedsize()
Returns the size of the compressed data.

Returns:
-1, or compressed size

zip_entry_compressionmethod

public java.lang.String zip_entry_compressionmethod()
Only "deflate" and "store" methods are supported.

Returns:
the compression method used for this entry

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object