Package | Description |
---|---|
java.util.jar |
Provides classes for reading and writing the JAR (Java ARchive)
file format, which is based on the standard ZIP file format with an
optional manifest file.
|
java.util.zip |
Provides classes for reading and writing the standard ZIP and GZIP file
formats.
|
Modifier and Type | Class | Description |
---|---|---|
class |
JarEntry |
This class is used to represent a JAR file entry.
|
Modifier and Type | Method | Description |
---|---|---|
protected ZipEntry |
JarInputStream.createZipEntry(String name) |
Creates a new
JarEntry (ZipEntry ) for the
specified JAR file entry name. |
ZipEntry |
JarFile.getEntry(String name) |
Returns the
ZipEntry for the given base entry name or
null if not found. |
ZipEntry |
JarInputStream.getNextEntry() |
Reads the next ZIP file entry and positions the stream at the
beginning of the entry data.
|
Modifier and Type | Method | Description |
---|---|---|
InputStream |
JarFile.getInputStream(ZipEntry ze) |
Returns an input stream for reading the contents of the specified
zip file entry.
|
void |
JarOutputStream.putNextEntry(ZipEntry ze) |
Begins writing a new JAR file entry and positions the stream
to the start of the entry data.
|
Constructor | Description |
---|---|
JarEntry(ZipEntry ze) |
Creates a new
JarEntry with fields taken from the
specified ZipEntry object. |
Modifier and Type | Method | Description |
---|---|---|
protected ZipEntry |
ZipInputStream.createZipEntry(String name) |
Creates a new
ZipEntry object for the specified
entry name. |
ZipEntry |
ZipFile.getEntry(String name) |
Returns the zip file entry for the specified name, or null
if not found.
|
ZipEntry |
ZipInputStream.getNextEntry() |
Reads the next ZIP file entry and positions the stream at the
beginning of the entry data.
|
ZipEntry |
ZipEntry.setCreationTime(FileTime time) |
Sets the creation time of the entry.
|
ZipEntry |
ZipEntry.setLastAccessTime(FileTime time) |
Sets the last access time of the entry.
|
ZipEntry |
ZipEntry.setLastModifiedTime(FileTime time) |
Sets the last modification time of the entry.
|
Modifier and Type | Method | Description |
---|---|---|
Enumeration<? extends ZipEntry> |
ZipFile.entries() |
Returns an enumeration of the ZIP file entries.
|
Stream<? extends ZipEntry> |
ZipFile.stream() |
Returns an ordered
Stream over the ZIP file entries. |
Modifier and Type | Method | Description |
---|---|---|
InputStream |
ZipFile.getInputStream(ZipEntry entry) |
Returns an input stream for reading the contents of the specified
zip file entry.
|
void |
ZipOutputStream.putNextEntry(ZipEntry e) |
Begins writing a new ZIP file entry and positions the stream to the
start of the entry data.
|
Constructor | Description |
---|---|
ZipEntry(ZipEntry e) |
Creates a new zip entry with fields taken from the specified
zip entry.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps