public static final class ExtraFieldUtils.UnparseableExtraField extends java.lang.Object implements UnparseableExtraFieldBehavior
This class has been created long before Java 5 and would have been a real enum ever since.
Modifier and Type | Field and Description |
---|---|
static ExtraFieldUtils.UnparseableExtraField |
READ
Read the extra field data into an instance of
UnparseableExtraFieldData . |
static int |
READ_KEY
Key for "read" action.
|
static ExtraFieldUtils.UnparseableExtraField |
SKIP
Skip the extra field entirely and don't make its data
available - effectively removing the extra field data.
|
static int |
SKIP_KEY
Key for "skip" action.
|
static ExtraFieldUtils.UnparseableExtraField |
THROW
Throw an exception if field cannot be parsed.
|
static int |
THROW_KEY
Key for "throw an exception" action.
|
Modifier and Type | Method and Description |
---|---|
int |
getKey()
Key of the action to take.
|
ZipExtraField |
onUnparseableExtraField(byte[] data,
int off,
int len,
boolean local,
int claimedLength)
Decides what to do with extra field data that doesn't follow the recommended pattern.
|
public static final int THROW_KEY
public static final int SKIP_KEY
public static final int READ_KEY
public static final ExtraFieldUtils.UnparseableExtraField THROW
public static final ExtraFieldUtils.UnparseableExtraField SKIP
public static final ExtraFieldUtils.UnparseableExtraField READ
UnparseableExtraFieldData
.public int getKey()
public ZipExtraField onUnparseableExtraField(byte[] data, int off, int len, boolean local, int claimedLength) throws java.util.zip.ZipException
UnparseableExtraFieldBehavior
onUnparseableExtraField
in interface UnparseableExtraFieldBehavior
data
- the array of extra field dataoff
- offset into data where the unparseable data startslen
- the length of unparseable datalocal
- whether the extra field data stems from the local
file header. If this is false then the data is part if the
central directory header extra data.claimedLength
- length of the extra field claimed by the
third and forth byte if it did follow the recommended patternjava.util.zip.ZipException
- if an error occurs or unparseable extra
fields must not be acceptedCopyright © 2010 - 2023 Adobe. All Rights Reserved