org.apache.tools.zip

Class ExtraFieldUtils.UnparseableExtraField

public static final class ExtraFieldUtils.UnparseableExtraField extends Object

"enum" for the possible actions to take if the extra field cannot be parsed.
Field Summary
static ExtraFieldUtils.UnparseableExtraFieldREAD
Read the extra field data into an instance of UnparseableExtraFieldData.
static intREAD_KEY
Key for "read" action.
static ExtraFieldUtils.UnparseableExtraFieldSKIP
Skip the extra field entirely and don't make its data available - effectively removing the extra field data.
static intSKIP_KEY
Key for "skip" action.
static ExtraFieldUtils.UnparseableExtraFieldTHROW
Throw an exception if field cannot be parsed.
static intTHROW_KEY
Key for "throw an exception" action.
Method Summary
intgetKey()
Key of the action to take.

Field Detail

READ

public static final ExtraFieldUtils.UnparseableExtraField READ
Read the extra field data into an instance of UnparseableExtraFieldData.

READ_KEY

public static final int READ_KEY
Key for "read" action.

public static final ExtraFieldUtils.UnparseableExtraField SKIP
Skip the extra field entirely and don't make its data available - effectively removing the extra field data.

SKIP_KEY

public static final int SKIP_KEY
Key for "skip" action.

THROW

public static final ExtraFieldUtils.UnparseableExtraField THROW
Throw an exception if field cannot be parsed.

THROW_KEY

public static final int THROW_KEY
Key for "throw an exception" action.

Method Detail

getKey

public int getKey()
Key of the action to take.