ExtraFieldUtils

open class ExtraFieldUtils

ZipExtraField related methods

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
"enum" for the possible actions to take if the extra field cannot be parsed.

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
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.
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.
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.
Link copied to clipboard
open fun register(c: Class<out Any>)
Register a ZipExtraField implementation.