public enum DataDescriptorType extends java.lang.Enum<DataDescriptorType>
While the zip specification says the data descriptor should be used but it is optional. We record also whether the data descriptor contained the 4-byte signature at the start of the block or not.
| Enum Constant and Description |
|---|
DATA_DESCRIPTOR_WITH_SIGNATURE
The entry has a data descriptor that contains a signature.
|
DATA_DESCRIPTOR_WITHOUT_SIGNATURE
The entry has a data descriptor that does not contain a signature.
|
NO_DATA_DESCRIPTOR
The entry has no data descriptor.
|
| Modifier and Type | Field and Description |
|---|---|
int |
size
The number of bytes the data descriptor spans.
|
| Modifier and Type | Method and Description |
|---|---|
static DataDescriptorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DataDescriptorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataDescriptorType NO_DATA_DESCRIPTOR
public static final DataDescriptorType DATA_DESCRIPTOR_WITHOUT_SIGNATURE
public static final DataDescriptorType DATA_DESCRIPTOR_WITH_SIGNATURE
public static DataDescriptorType[] values()
for (DataDescriptorType c : DataDescriptorType.values()) System.out.println(c);
public static DataDescriptorType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null