public static enum JarFile.Release extends Enum<JarFile.Release>
Release
enum.
In those cases, the entries will not be located by this JarFile
through the aliasing mechanism, but they can be directly accessed by
specifying the full path name of the entry.Enum Constant and Description |
---|
BASE
Represents unversioned entries, or entries in "regular", as opposed
to multi-release jar files.
|
RUNTIME
Represents entries found in the META-INF/versions/{n} directory of a
multi-release jar file, where
n is the effective runtime
version of the jar file. |
VERSION_9
Represents entries found in the META-INF/versions/9 directory of a
multi-release jar file.
|
Modifier and Type | Method and Description |
---|---|
static JarFile.Release |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JarFile.Release[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JarFile.Release BASE
public static final JarFile.Release RUNTIME
n
is the effective runtime
version of the jar file.Version.current().major()
or by using the value
of the jdk.util.jar.version
System property if it exists.
public static final JarFile.Release VERSION_9
public static JarFile.Release[] values()
for (JarFile.Release c : JarFile.Release.values()) System.out.println(c);
public static JarFile.Release valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null 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, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-04-13-183229.buildd.src