java.util.zip.ZipEntry 类用于表示ZIP文件条目.
以下是 java.util.zip.ZipEntry 类声明&减去;
public class ZipEntry extends Object implements Cloneable
以下是 java.util.zip.ZipEntry 的字段&减去;
protected byte [] buf : 用于写入未压缩数据的输出缓冲区.
protected Inflater inf : 此流的解压缩器.
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
静态长CENSIG
static int CENSIZ
static int CENTIM
static int CENVEM
static int CENVER
static int DEFLATED : 压缩(缩小)条目的压缩方法.
static int ENDCOM
static int ENDHDR
static int ENDOFF
静态长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 : 未压缩条目的压缩方法.
Sr.No. | 构造函数&说明 |
---|---|
1 | ZipEntry(String name) 创建一个具有指定名称的新zip条目. |
2 | ZipEntry(ZipEntry e) 创建一个新的zip条目,其中的字段取自指定的zip条目. |
Sr.No . | 方法&说明 |
---|---|
1 | Object clone() 返回此条目的副本. |
2 | String getComment() 返回条目的注释字符串,如果没有则返回null. |
3 | long getCompressedSize() 返回压缩条目数据的大小,如果不知道则返回-1. |
4 | long getCrc() 返回未压缩条目数据的CRC-32校验和,如果不知道则返回-1. |
5 | byte [] getExtra() 返回条目的额外字段数据,如果没有,则返回null. |
6 | int getMethod() 返回条目的压缩方法,如果未指定,则返回-1. |
7 | String getName() 返回条目的名称. |
8 | long getSize() 返回条目数据的未压缩大小,如果不知道则返回-1. |
9 | long getTime() 返回th的修改时间e条目,如果没有指定则为-1. |
10 | int hashCode() 返回此条目的哈希码值. |
11 | boolean isDirectory() 如果这是目录条目,则返回true. |
12 | void setComment(String comment) 设置条目的可选注释字符串. |
13 | void setCrc(long crc) 设置未压缩条目数据的CRC-32校验和. |
14 | void setExtra(byte [] extra) 设置条目的可选额外字段数据. |
15 | void setMethod(int method) 设置条目的压缩方法. |
16 | void setSize(long size) ) 设置条目数据的未压缩大小. |
17 | void setTime(long time) 设置条目的修改时间. |
18 | String toString() 返回Z的字符串表示形式IP输入. |
此类继承以下类中的方法 :
java.io.FilterOutputStream
java.lang.对象