-
- All Implemented Interfaces:
-
org.readium.r2.shared.util.zip.compress.archivers.zip.UnparseableExtraFieldBehavior
public final class ExtraFieldUtils.UnparseableExtraField implements UnparseableExtraFieldBehavior
"enum" for the possible actions to take if the extra fieldcannot be parsed.
This class has been created long before Java 5 and wouldhave been a real enum ever since.
-
-
Field Summary
Fields Modifier and Type Field Description public final static intTHROW_KEYpublic final static intSKIP_KEYpublic final static intREAD_KEYpublic final static ExtraFieldUtils.UnparseableExtraFieldTHROWpublic final static ExtraFieldUtils.UnparseableExtraFieldSKIPpublic final static ExtraFieldUtils.UnparseableExtraFieldREADprivate final intkey
-
Method Summary
Modifier and Type Method Description intgetKey()Key of the action to take. ZipExtraFieldonUnparseableExtraField(Array<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. -
-
Method Detail
-
getKey
int getKey()
Key of the action to take.
-
onUnparseableExtraField
ZipExtraField onUnparseableExtraField(Array<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.
- Parameters:
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 localfile header.claimedLength- length of the extra field claimed by thethird and forth byte if it did follow the recommended pattern
-
-
-
-