所有类


java.util.zip
类 ZipEntry

java.lang.Object
  继承者 java.util.zip.ZipEntry
所有已实现的接口:
Cloneable
直接已知子类:
JarEntry

public class ZipEntry
   
   
   
   
   
extends Object
implements Cloneable

此类用于表示 ZIP 文件条目。


字段摘要
static intCENATT
           
static intCENATX
           
static intCENCOM
           
static intCENCRC
           
static intCENDSK
           
static intCENEXT
           
static intCENFLG
           
static intCENHDR
           
static intCENHOW
           
static intCENLEN
           
static intCENNAM
           
static intCENOFF
           
static longCENSIG
           
static intCENSIZ
           
static intCENTIM
           
static intCENVEM
           
static intCENVER
           
static intDEFLATED
          用于已压缩 (deflated) 条目的压缩方法。
static intENDCOM
           
static intENDHDR
           
static intENDOFF
           
static longENDSIG
           
static intENDSIZ
           
static intENDSUB
           
static intENDTOT
           
static intEXTCRC
           
static intEXTHDR
           
static intEXTLEN
           
static longEXTSIG
           
static intEXTSIZ
           
static intLOCCRC
           
static intLOCEXT
           
static intLOCFLG
           
static intLOCHDR
           
static intLOCHOW
           
static intLOCLEN
           
static intLOCNAM
           
static longLOCSIG
           
static intLOCSIZ
           
static intLOCTIM
           
static intLOCVER
           
static intSTORED
          用于未压缩条目的压缩方法。
 
构造方法摘要
ZipEntry(String name)
          使用指定名称创建新的 ZIP 条目。
ZipEntry(ZipEntry e)
          使用从指定 ZIP 条目获取的字段创建新的 ZIP 条目。
 
方法摘要
 Objectclone()
          返回此条目的副本。
 StringgetComment()
          返回条目的注释字符串;如果没有,则返回 null。
 longgetCompressedSize()
          返回压缩条目数据的大小;如果未知,则返回 -1。
 longgetCrc()
          返回未压缩条目数据的 CRC-32 校验和;如果未知,则返回 -1。
 byte[]getExtra()
          返回条目的额外字段数据;如果没有,则返回 null。
 intgetMethod()
          返回条目的压缩方法;如果未指定,则返回 -1。
 StringgetName()
          返回条目名称。
 longgetSize()
          返回条目数据的未压缩大小;如果未知,则返回 -1。
 longgetTime()
          返回条目的修改时间;如果未指定,则返回 -1。
 inthashCode()
          返回此条目的哈希码值。
 booleanisDirectory()
          如果为目录条目,则返回 true。
 voidsetComment(String comment)
          为条目设置可选的注释字符串。
 voidsetCompressedSize(long csize)
          设置压缩条目数据的大小。
 voidsetCrc(long crc)
          设置未压缩条目数据的 CRC-32 校验和。
 voidsetExtra(byte[] extra)
          为条目设置可选的额外字段数据。
 voidsetMethod(int method)
          设置条目的压缩方法。
 voidsetSize(long size)
          设置条目数据的未压缩大小。
 voidsetTime(long time)
          设置条目的修改时间。
 StringtoString()
          返回 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
另请参见:
常量字段值