Package org.apache.tika.parser.multiple
Enum AbstractMultipleParser.MetadataPolicy
java.lang.Object
java.lang.Enum<AbstractMultipleParser.MetadataPolicy>
org.apache.tika.parser.multiple.AbstractMultipleParser.MetadataPolicy
- All Implemented Interfaces:
Serializable
,Comparable<AbstractMultipleParser.MetadataPolicy>
,java.lang.constant.Constable
- Enclosing class:
- AbstractMultipleParser
public static enum AbstractMultipleParser.MetadataPolicy
extends Enum<AbstractMultipleParser.MetadataPolicy>
The various strategies for handling metadata emitted by
multiple parsers.
Note that not all will be supported by all subclasses.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionBefore moving onto another parser, throw away all previously seen metadataThe first parser to output a given key wins, merge in non-clashing other keysWhere multiple parsers output a given key, store all their different (unique) valuesThe last parser to output a given key wins, overriding previous parser values for a clashing key. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DISCARD_ALL
Before moving onto another parser, throw away all previously seen metadata -
FIRST_WINS
The first parser to output a given key wins, merge in non-clashing other keys -
LAST_WINS
The last parser to output a given key wins, overriding previous parser values for a clashing key. -
KEEP_ALL
Where multiple parsers output a given key, store all their different (unique) values
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-