📜  java.util.zip-ZipInputStream类

📅  最后修改于: 2020-11-14 10:55:06             🧑  作者: Mango


介绍

java.util.zip.ZipInputStream类实现输入流过滤器,以读取ZIP文件格式的文件。包括对压缩和未压缩条目的支持。

类声明

以下是java.util.zip.ZipInputStream类的声明-

public class ZipInputStream
   extends InflaterInputStream

领域

以下是java.util.zip.ZipInputStream类的字段-

  • 静态int CENATT

  • 静态int CENATX

  • 静态int CENCOM

  • 静态int CENCRC

  • static int CENDSK

  • 静态int CENEXT

  • 静态int CENFLG

  • 静态int CENHDR

  • 静态int CENHOW

  • 静态整数CENLEN

  • 静态int CENNAM

  • 静态int CENOFF

  • 静态长CENSIG

  • 静态int CENSIZ

  • 静态int CENTIM

  • static int CENVEM

  • static int CENVER

  • 静态int ENDCOM

  • 静态int ENDHDR

  • 静态int ENDOFF

  • 静态长ENDSIG

  • 静态整数ENDSIZ

  • 静态int ENDSUB

  • 静态int ENDTOT

  • 静态int EXTCRC

  • 静态诠释EXTHDR

  • 静态整数EXTLEN

  • 静态长EXTSIG

  • 静态整数EXTSIZ

  • 静态int LOCCRC

  • 静态整数LOCEXT

  • 静态int LOCFLG

  • 静态int LOCHDR

  • 静态int LOCHOW

  • 静态整数LOCLEN

  • 静态int LOCNAM

  • 静态长LOCSIG

  • 静态int LOCSIZ

  • 静态整数LOCTIM

  • 静态整数LOCVER

建设者

Sr.No. Constructor & Description
1

ZipInputStream(InputStream in)

Creates a new ZIP input stream.

2

ZipInputStream(InputStream in, Charset charset)

Creates a new ZIP input stream.

类方法

Sr.No. Method & Description
1 int available()

Returns 0 after EOF has reached for the current entry data, otherwise always return 1.

2 void close()

Closes this input stream and releases any system resources associated with the stream.

3 void closeEntry()

Closes the current ZIP entry and positions the stream for reading the next entry.

4 ZipEntry getNextEntry()

Reads the next ZIP file entry and positions the stream at the beginning of the entry data.

5 int read(byte[] b, int off, int len)

Reads from the current ZIP entry into an array of bytes.

6 long skip(long n)

Skips specified number of bytes in the current ZIP entry.

方法继承

此类从以下类继承方法-

  • java.util.zip.InflaterInputStream
  • java.io.FilterInputStream
  • java.lang.Object

打印