Package 

Interface ExtraFieldParsingBehavior

    • Method Summary

      Modifier and Type Method Description
      abstract ZipExtraField createExtraField(ZipShort headerId) Creates an instance of ZipExtraField for the given id.
      abstract ZipExtraField fill(ZipExtraField field, Array<byte> data, int off, int len, boolean local) Fills in the extra field data for a single extra field.
      • Methods inherited from class org.readium.r2.shared.util.zip.compress.archivers.zip.UnparseableExtraFieldBehavior

        onUnparseableExtraField
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createExtraField

         abstract ZipExtraField createExtraField(ZipShort headerId)

        Creates an instance of ZipExtraField for the given id.

        A good default implementation would be .

        Parameters:
        headerId - the id for the extra field
      • fill

         abstract ZipExtraField fill(ZipExtraField field, Array<byte> data, int off, int len, boolean local)

        Fills in the extra field data for a single extra field.

        A good default implementation would be .

        Parameters:
        field - the extra field instance to fill
        data - the array of extra field data
        off - offset into data where this field's data starts
        len - the length of this field's data
        local - whether the extra field data stems from the localfile header.