Package | Description |
---|---|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
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.
|
Modifier and Type | Method | Description |
---|---|---|
static Runtime.Version |
Runtime.Version.parse(String s) |
Parses the given string as a valid
version string containing a
version number followed by pre-release and
build information.
|
static Runtime.Version |
Runtime.version() |
Returns the version of the Java Runtime Environment as a
Runtime.Version . |
Modifier and Type | Method | Description |
---|---|---|
int |
Runtime.Version.compareTo(Runtime.Version ob) |
Compares this version to another.
|
int |
Runtime.Version.compareToIgnoreOptional(Runtime.Version ob) |
Compares this version to another disregarding optional build
information.
|
Modifier and Type | Method | Description |
---|---|---|
static Runtime.Version |
JarFile.baseVersion() |
Returns the version that represents the unversioned configuration of a
multi-release jar file.
|
Runtime.Version |
JarFile.getVersion() |
Returns the maximum version used when searching for versioned entries.
|
static Runtime.Version |
JarFile.runtimeVersion() |
Returns the version that represents the effective runtime versioned
configuration of a multi-release jar file.
|
Constructor | Description |
---|---|
JarFile(File file,
boolean verify,
int mode,
Runtime.Version version) |
Creates a new
JarFile to read from the specified
File object in the specified mode. |
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