-
- All Implemented Interfaces:
-
org.readium.r2.shared.util.zip.compress.archivers.zip.UnparseableExtraFieldBehavior
public interface ExtraFieldParsingBehavior implements UnparseableExtraFieldBehavior
Controls details of parsing zip extra fields.
-
-
Method Summary
Modifier and Type Method Description abstract ZipExtraFieldcreateExtraField(ZipShort headerId)Creates an instance of ZipExtraField for the given id. abstract ZipExtraFieldfill(ZipExtraField field, Array<byte> data, int off, int len, boolean local)Fills in the extra field data for a single extra field. -
-
Method Detail
-
createExtraField
abstract ZipExtraField createExtraField(ZipShort headerId)
- Parameters:
headerId- the id for the extra field
-
fill
abstract ZipExtraField fill(ZipExtraField field, Array<byte> data, int off, int len, boolean local)
- Parameters:
field- the extra field instance to filldata- the array of extra field dataoff- offset into data where this field's data startslen- the length of this field's datalocal- whether the extra field data stems from the localfile header.
-
-
-
-