parse

open fun parse(data: Array<Byte>): Array<ZipExtraField>

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.

Return

an array of ExtraFields

Parameters

data

an array of bytes as it appears in local file data

Throws

on error


open fun parse(data: Array<Byte>, local: Boolean): Array<ZipExtraField>

Split the array into ExtraFields and populate them with the given data, throwing an exception if the data cannot be parsed.

Return

an array of ExtraFields

Parameters

data

an array of bytes

local

whether data originates from the local file data or the central directory

Throws

on error


open fun parse(data: Array<Byte>, local: Boolean, parsingBehavior: ExtraFieldParsingBehavior): Array<ZipExtraField>

Split the array into ExtraFields and populate them with the given data.

Return

an array of ExtraFields

Since

1.19

Parameters

data

an array of bytes

parsingBehavior

controls parsing of extra fields.

local

whether data originates from the local file data or the central directory

Throws

on error


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.

Return

an array of ExtraFields

Since

1.1

Parameters

data

an array of bytes

local

whether data originates from the local file data or the central directory

onUnparseableData

what to do if the extra field data cannot be parsed.

Throws

on error