| |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.util.zip
类 ZipEntry
java.lang.Object java.util.zip.ZipEntry
- 所有已实现的接口:
- Cloneable
- 直接已知子类:
- JarEntry
此类用于表示 ZIP 文件条目。
字段摘要 | |
---|---|
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 用于已压缩 (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 用于未压缩条目的压缩方法。 |
构造方法摘要 | |
---|---|
ZipEntry(String name) 使用指定名称创建新的 ZIP 条目。 | |
ZipEntry(ZipEntry e) 使用从指定 ZIP 条目获取的字段创建新的 ZIP 条目。 |
方法摘要 | |
---|---|
Object | clone() 返回此条目的副本。 |
String | getComment() 返回条目的注释字符串;如果没有,则返回 null。 |
long | getCompressedSize() 返回压缩条目数据的大小;如果未知,则返回 -1。 |
long | getCrc() 返回未压缩条目数据的 CRC-32 校验和;如果未知,则返回 -1。 |
byte[] | getExtra() 返回条目的额外字段数据;如果没有,则返回 null。 |
int | getMethod() 返回条目的压缩方法;如果未指定,则返回 -1。 |
String | getName() 返回条目名称。 |
long | getSize() 返回条目数据的未压缩大小;如果未知,则返回 -1。 |
long | getTime() 返回条目的修改时间;如果未指定,则返回 -1。 |
int | hashCode() 返回此条目的哈希码值。 |
boolean | isDirectory() 如果为目录条目,则返回 true。 |
void | setComment(String comment) 为条目设置可选的注释字符串。 |
void | setCompressedSize(long csize) 设置压缩条目数据的大小。 |
void | setCrc(long crc) 设置未压缩条目数据的 CRC-32 校验和。 |
void | setExtra(byte[] extra) 为条目设置可选的额外字段数据。 |
void | setMethod(int method) 设置条目的压缩方法。 |
void | setSize(long size) 设置条目数据的未压缩大小。 |
void | setTime(long time) 设置条目的修改时间。 |
String | toString() 返回 ZIP 条目的字符串表示形式。 |
从类 java.lang.Object 继承的方法 |
---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
字段详细信息 |
---|
STORED
public static final int STORED
- 用于未压缩条目的压缩方法。
- 另请参见:
- 常量字段值
DEFLATED
public static final int DEFLATED
- 用于已压缩 (deflated) 条目的压缩方法。
- 另请参见:
- 常量字段值
LOCSIG
public static final long LOCSIG
- 另请参见:
- 常量字段值
EXTSIG
public static final long EXTSIG
- 另请参见:
- 常量字段值
CENSIG
public static final long CENSIG
- 另请参见:
- 常量字段值
ENDSIG
public static final long ENDSIG
- 另请参见:
- 常量字段值
LOCHDR
public static final int LOCHDR
- 另请参见:
- 常量字段值