public enum Platform extends Enum<Platform>
ZipCentralDirectoryFileEntry.getVersionMade()
.Enum Constant and Description |
---|
ACORD |
ALT_MVS |
AMIGA |
ATARI_ST |
BEOS |
CPM |
MACINTOSH |
MSDOS_AND_OS2 |
MVS |
OPENVMS |
OS2_HPFS |
OS400 |
OSX |
OTHER |
TANDEM |
UNIX |
VFAT |
VM_CMS |
VSE |
WINDOWS |
Z_SYSTEM |
Modifier and Type | Method and Description |
---|---|
static Platform |
detectPlatform()
Detect our platform by looking at various JDK attributes.
|
static Platform |
detectPlatform(String os)
Detect our platform by string.
|
static Platform |
fromValue(int value)
Given an integer, return the associated platform..
|
String |
getLabel() |
int |
getValue() |
static Platform |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Platform[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Platform MSDOS_AND_OS2
public static final Platform AMIGA
public static final Platform OPENVMS
public static final Platform UNIX
public static final Platform VM_CMS
public static final Platform ATARI_ST
public static final Platform OS2_HPFS
public static final Platform MACINTOSH
public static final Platform Z_SYSTEM
public static final Platform CPM
public static final Platform WINDOWS
public static final Platform MVS
public static final Platform VSE
public static final Platform ACORD
public static final Platform VFAT
public static final Platform ALT_MVS
public static final Platform BEOS
public static final Platform TANDEM
public static final Platform OS400
public static final Platform OSX
public static final Platform OTHER
public static Platform[] values()
for (Platform c : Platform.values()) System.out.println(c);
public static Platform 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 nullpublic int getValue()
public String getLabel()
public static Platform detectPlatform()
public static Platform detectPlatform(String os)
public static Platform fromValue(int value)
This documentation content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.