ExtraFieldUtils
ZipExtraField related methods
Types
Functions
Link copied to clipboard
Create an instance of the appropriate ExtraField, falls back to UnrecognizedExtraField.
Link copied to clipboard
Create an instance of the appropriate ExtraField.
Link copied to clipboard
open fun fillExtraField(ze: ZipExtraField, data: Array<Byte>, off: Int, len: Int, local: Boolean): ZipExtraField
Fills in the extra field data into the given instance.
Link copied to clipboard
Merges the central directory fields of the given ZipExtraFields.
Link copied to clipboard
Merges the local file data fields of the given ZipExtraFields.
Link copied to clipboard
Split the array into ExtraFields and populate them with the given data as local file data, throwing an exception if the data cannot be parsed.
Split the array into ExtraFields and populate them with the given data, throwing an exception if the data cannot be parsed.
open fun parse(data: Array<Byte>, local: Boolean, parsingBehavior: ExtraFieldParsingBehavior): Array<ZipExtraField>
open fun parse(data: Array<Byte>, local: Boolean, onUnparseableData: ExtraFieldUtils.UnparseableExtraField): Array<ZipExtraField>
Split the array into ExtraFields and populate them with the given data.