Java java.util.zip ZipEntry fields, constructors, methods, implement or subclass

Example usage for Java java.util.zip ZipEntry fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util.zip ZipEntry.

The text is from its open source code.

Field

intSTORED
Compression method for uncompressed entries.
intDEFLATED
Compression method for compressed (deflated) entries.

Constructor

ZipEntry(String name)
Creates a new zip entry with the specified name.
ZipEntry(ZipEntry e)
Creates a new zip entry with fields taken from the specified zip entry.

Method

Objectclone()
Returns a copy of this entry.
StringgetComment()
Returns the comment string for the entry.
longgetCompressedSize()
Returns the size of the compressed entry data.
longgetCrc()
Returns the CRC-32 checksum of the uncompressed entry data.
byte[]getExtra()
Returns the extra field data for the entry.
FileTimegetLastModifiedTime()
Returns the last modification time of the entry.
intgetMethod()
Returns the compression method of the entry.
StringgetName()
Returns the name of the entry.
longgetSize()
Returns the uncompressed size of the entry data.
longgetTime()
Returns the last modification time of the entry.
inthashCode()
Returns the hash code value for this entry.
booleanisDirectory()
Returns true if this is a directory entry.
voidsetComment(String comment)
Sets the optional comment string for the entry.
voidsetCompressedSize(long csize)
Sets the size of the compressed entry data.
voidsetCrc(long crc)
Sets the CRC-32 checksum of the uncompressed entry data.
ZipEntrysetCreationTime(FileTime time)
Sets the creation time of the entry.
voidsetExtra(byte[] extra)
Sets the optional extra field data for the entry.
voidsetMethod(int method)
Sets the compression method for the entry.
voidsetSize(long size)
Sets the uncompressed size of the entry data.
voidsetTime(long time)
Sets the last modification time of the entry.
StringtoString()
Returns a string representation of the ZIP entry.