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

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

Introduction

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

The text is from its open source code.

Subclass

java.util.zip.ZipFile has subclasses.
Click this link to see all its subclasses.

Field

intOPEN_READ
Mode flag to open a zip file for reading.
intOPEN_DELETE
Mode flag to open a zip file and mark it for deletion.

Constructor

ZipFile(File file, int mode)
Opens a new ZipFile to read from the specified File object in the specified mode.
ZipFile(String name, Charset charset)
Opens a zip file for reading.
ZipFile(File file, Charset charset)
Opens a ZIP file for reading given the specified File object.
ZipFile(String name)
Opens a zip file for reading.
ZipFile(File file)
Opens a ZIP file for reading given the specified File object.
ZipFile(File file, int mode, Charset charset)
Opens a new ZipFile to read from the specified File object in the specified mode.

Method

voidclose()
Closes the ZIP file.
Enumerationentries()
Returns an enumeration of the ZIP file entries.
StringgetComment()
Returns the zip file comment, or null if none.
ZipEntrygetEntry(String name)
Returns the zip file entry for the specified name, or null if not found.
InputStreamgetInputStream(ZipEntry entry)
Returns an input stream for reading the contents of the specified zip file entry.
StringgetName()
Returns the path name of the ZIP file.
inthashCode()
Returns a hash code value for the object.
intsize()
Returns the number of entries in the ZIP file.
Streamstream()
Returns an ordered Stream over the ZIP file entries.
StringtoString()
Returns a string representation of the object.