Java org.apache.commons.compress.archivers.zip ZipFile fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.compress.archivers.zip ZipFile fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.compress.archivers.zip ZipFile.

The text is from its open source code.

Subclass

org.apache.commons.compress.archivers.zip.ZipFile has subclasses.
Click this link to see all its subclasses.

Field

Mapentries
Maps ZipArchiveEntrys to Longs, recording the offsets of the local file headers.

Constructor

ZipFile(File f)
Opens the given file for reading, assuming "UTF8" for file names.
ZipFile(String name)
Opens the given file for reading, assuming "UTF8".
ZipFile(File f, String encoding, boolean useUnicodeExtraFields)
Opens the given file for reading, assuming the specified encoding for file names.
ZipFile(String name, String encoding)
Opens the given file for reading, assuming the specified encoding for file names, scanning unicode extra fields.
ZipFile(File f, String encoding)
Opens the given file for reading, assuming the specified encoding for file names and scanning for unicode extra fields.

Method

booleancanReadEntryData(ZipArchiveEntry ze)
Whether this class is able to read the given entry.
voidclose()
Closes the archive.
voidcloseQuietly(ZipFile zipfile)
close a zipfile quietly; throw no io fault, do nothing on a null parameter
ClassgetClass()
Returns the runtime class of this Object .
StringgetEncoding()
The encoding to use for filenames and the file comment.
EnumerationgetEntries()
Returns all entries.
EnumerationgetEntriesInPhysicalOrder()
Returns all entries in physical order.
ZipArchiveEntrygetEntry(String name)
Returns a named entry - or null if no entry by that name exists.
InputStreamgetInputStream(ZipArchiveEntry ze)
Returns an InputStream for reading the contents of the given entry.