| |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.util.zip
类 ZipOutputStream
java.lang.Object java.io.OutputStream java.io.FilterOutputStream java.util.zip.DeflaterOutputStream java.util.zip.ZipOutputStream
- 直接已知子类:
- JarOutputStream
public class ZipOutputStream
- extends DeflaterOutputStream
此类为以 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 用于未压缩 (STORED) 条目的压缩方法。 |
从类 java.util.zip.DeflaterOutputStream 继承的字段 |
---|
buf, def |
从类 java.io.FilterOutputStream 继承的字段 |
---|
out |
构造方法摘要 | |
---|---|
ZipOutputStream(OutputStream out) 创建新的 ZIP 输出流。 |
方法摘要 | |
---|---|
void | close() 关闭 ZIP 输出流和正在过滤的流。 |
void | closeEntry() 关闭当前 ZIP 条目并定位流以写入下一个条目。 |
void | finish() 完成写入 ZIP 输出流的内容,无需关闭基础流。 |
void | putNextEntry(ZipEntry e) 开始写入新的 ZIP 文件条目并将流定位到条目数据的开始处。 |
void | setComment(String comment) 设置 ZIP 文件注释。 |
void | setLevel(int level) 为后续的 DEFLATED 条目设置压缩级别。 |
void | setMethod(int method) 设置用于后续条目的默认压缩方法。 |
void | write(byte[] b, int off, int len) 将字节数组写入当前 ZIP 条目数据。 |
从类 java.util.zip.DeflaterOutputStream 继承的方法 |
---|
deflate, write |
从类 java.io.FilterOutputStream 继承的方法 |
---|
flush, write |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
STORED
public static final int STORED
- 用于未压缩 (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
- 另请参见:
- 常量字段值