Enum ZipArchiveEntry.ExtraFieldParsingMode

    • Enum Constant Detail

      • STRICT_FOR_KNOW_EXTRA_FIELDS

        public static final ZipArchiveEntry.ExtraFieldParsingMode STRICT_FOR_KNOW_EXTRA_FIELDS
        Try to parse as many extra fields as possible and wrap unknown extra fields in UnrecognizedExtraField.

        Wrap extra data that doesn't follow the recommended pattern in an UnparseableExtraFieldData instance.

        Throw an exception if an extra field that is generally supported cannot be parsed.

        This used to be the default behavior prior to Commons Compress 1.19.

      • ONLY_PARSEABLE_LENIENT

        public static final ZipArchiveEntry.ExtraFieldParsingMode ONLY_PARSEABLE_LENIENT
        Try to parse as many extra fields as possible and wrap unknown extra fields as well as supported extra fields that cannot be parsed in UnrecognizedExtraField.

        Ignore extra data that doesn't follow the recommended pattern.

      • ONLY_PARSEABLE_STRICT

        public static final ZipArchiveEntry.ExtraFieldParsingMode ONLY_PARSEABLE_STRICT
        Try to parse as many extra fields as possible and wrap unknown extra fields in UnrecognizedExtraField.

        Ignore extra data that doesn't follow the recommended pattern.

        Throw an exception if an extra field that is generally supported cannot be parsed.

      • DRACONIC

        public static final ZipArchiveEntry.ExtraFieldParsingMode DRACONIC
        Throw an exception if any of the recognized extra fields cannot be parsed or any extra field violates the recommended pattern.