public final class ZipEntry
extends java.lang.Object
implements java.lang.Cloneable
ZipFile.getInputStream(java.util.zip.ZipEntry). The class documentation for ZipInputStream and
ZipOutputStream shows how android.ZipEntry is used in conjunction with those two
classes.| Modifier and Type | Field and Description |
|---|---|
static int |
CENATT |
static int |
CENATX |
static int |
CENCOM |
static int |
CENCRC |
static int |
CENDSK |
static int |
CENEXT |
static int |
CENFLG |
static int |
CENHDR |
static int |
CENHOW |
static int |
CENLEN |
static int |
CENNAM |
static int |
CENOFF |
static long |
CENSIG |
static int |
CENSIZ |
static int |
CENTIM |
static int |
CENVEM |
static int |
CENVER |
static int |
DEFLATED
Zip entry state: Deflated.
|
static int |
ENDCOM |
static int |
ENDHDR |
static int |
ENDOFF |
static long |
ENDSIG |
static int |
ENDSIZ |
static int |
ENDSUB |
static int |
ENDTOT |
static int |
EXTCRC |
static int |
EXTHDR |
static int |
EXTLEN |
static long |
EXTSIG |
static int |
EXTSIZ |
static int |
LOCCRC |
static int |
LOCEXT |
static int |
LOCFLG |
static int |
LOCHDR |
static int |
LOCHOW |
static int |
LOCLEN |
static int |
LOCNAM |
static long |
LOCSIG |
static int |
LOCSIZ |
static int |
LOCTIM |
static int |
LOCVER |
static int |
STORED
Zip entry state: Stored.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Returns a deep copy of this zip entry.
|
java.lang.String |
getComment()
Returns the comment for this
android.ZipEntry, or null if there is no comment. |
long |
getCompressedSize()
Gets the compressed size of this
android.ZipEntry. |
long |
getCrc()
Gets the checksum for this
android.ZipEntry. |
byte[] |
getExtra()
Gets the extra information for this
android.ZipEntry. |
int |
getMethod()
Gets the compression method for this
android.ZipEntry. |
java.lang.String |
getName()
Gets the name of this
android.ZipEntry. |
long |
getSize()
Gets the uncompressed size of this
android.ZipEntry. |
long |
getTime()
Gets the last modification time of this
android.ZipEntry. |
boolean |
isDirectory()
Determine whether or not this
android.ZipEntry is a directory. |
java.lang.String |
toString()
Returns the string representation of this
android.ZipEntry. |
public static final int DEFLATED
public static final int STORED
public static final long LOCSIG
public static final long EXTSIG
public static final long CENSIG
public static final long ENDSIG
public static final int LOCHDR
public static final int EXTHDR
public static final int CENHDR
public static final int ENDHDR
public static final int LOCVER
public static final int LOCFLG
public static final int LOCHOW
public static final int LOCTIM
public static final int LOCCRC
public static final int LOCSIZ
public static final int LOCLEN
public static final int LOCNAM
public static final int LOCEXT
public static final int EXTCRC
public static final int EXTSIZ
public static final int EXTLEN
public static final int CENVEM
public static final int CENVER
public static final int CENFLG
public static final int CENHOW
public static final int CENTIM
public static final int CENCRC
public static final int CENSIZ
public static final int CENLEN
public static final int CENNAM
public static final int CENEXT
public static final int CENCOM
public static final int CENDSK
public static final int CENATT
public static final int CENATX
public static final int CENOFF
public static final int ENDSUB
public static final int ENDTOT
public static final int ENDSIZ
public static final int ENDOFF
public static final int ENDCOM
public java.lang.String getComment()
android.ZipEntry, or null if there is no comment. If we're reading a
zip file using ZipInputStream, the comment is not available.public long getCompressedSize()
android.ZipEntry.public long getCrc()
android.ZipEntry.public byte[] getExtra()
android.ZipEntry.null if there is none.public int getMethod()
android.ZipEntry.DEFLATED, STORED or -1 if the compression method has not
been set.public java.lang.String getName()
android.ZipEntry.public long getSize()
android.ZipEntry.-1 if the size has not been set.public long getTime()
android.ZipEntry.public boolean isDirectory()
android.ZipEntry is a directory.true when this android.ZipEntry is a directory, false otherwise.public java.lang.String toString()
android.ZipEntry.toString in class java.lang.Objectandroid.ZipEntry.public java.lang.Object clone()
clone in class java.lang.Object