Package 

Class ExtraFieldUtils

    • Method Detail

      • parse

         static Array<ZipExtraField> parse(Array<byte> data)

        Split the array into ExtraFields and populate them with thegiven data as local file data, throwing an exception if thedata cannot be parsed.

        Parameters:
        data - an array of bytes as it appears in local file data
      • parse

         static Array<ZipExtraField> parse(Array<byte> data, boolean local)

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

        Parameters:
        data - an array of bytes
        local - whether data originates from the local file dataor the central directory
      • parse

         static Array<ZipExtraField> parse(Array<byte> data, boolean local, ExtraFieldParsingBehavior parsingBehavior)

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

        Parameters:
        data - an array of bytes
        local - whether data originates from the local file dataor the central directory
        parsingBehavior - controls parsing of extra fields.
      • parse

         static Array<ZipExtraField> parse(Array<byte> data, boolean local, ExtraFieldUtils.UnparseableExtraField onUnparseableData)

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

        Parameters:
        data - an array of bytes
        local - whether data originates from the local file dataor the central directory
        onUnparseableData - what to do if the extra field datacannot be parsed.
      • register

         static void register(Class<out Object> c)

        Register a ZipExtraField implementation.

        The given class must have a no-arg constructor and implementthe ZipExtraField interface.

        Parameters:
        c - the class to register