UnparseableExtraField

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

This class has been created long before Java 5 and would have been a real enum ever since.

Since

1.1

Properties

Link copied to clipboard
val key: Int
Link copied to clipboard
Read the extra field data into an instance of UnparseableExtraFieldData.
Link copied to clipboard
val READ_KEY: Int = 2
Key for "read" action.
Link copied to clipboard
Skip the extra field entirely and don't make its data available - effectively removing the extra field data.
Link copied to clipboard
val SKIP_KEY: Int = 1
Key for "skip" action.
Link copied to clipboard
Throw an exception if field cannot be parsed.
Link copied to clipboard
val THROW_KEY: Int = 0
Key for "throw an exception" action.

Functions

Link copied to clipboard
open fun onUnparseableExtraField(data: Array<Byte>, off: Int, len: Int, local: Boolean, claimedLength: Int): ZipExtraField
Decides what to do with extra field data that doesn't follow the recommended pattern.