public enum AesVersion extends Enum<AesVersion>
Enum Constant and Description |
---|
ONE
Version 1 of the AES format
|
TWO
Version 2 of the AES format
|
Modifier and Type | Method and Description |
---|---|
static AesVersion |
getFromVersionNumber(int versionNumber)
Get the AESVersion instance from an integer AES version number
|
int |
getVersionNumber()
Get the AES version number as an integer
|
static AesVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AesVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AesVersion ONE
public static final AesVersion TWO
public static AesVersion[] values()
for (AesVersion c : AesVersion.values()) System.out.println(c);
public static AesVersion 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 getVersionNumber()
public static AesVersion getFromVersionNumber(int versionNumber) throws ZipException
IllegalArgumentException
- if an unsupported version is givenZipException
Copyright © 2022. All rights reserved.