Package 

Class ExtraFieldUtils.UnparseableExtraField

  • 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.

    • 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 data
        off - offset into data where the unparseable data starts
        len - the length of unparseable data
        local - 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