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>
- 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.
- 
Enum Constant SummaryEnum ConstantsEnum 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 SummaryModifier 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_ALLBefore moving onto another parser, throw away all previously seen metadata
- 
FIRST_WINSThe first parser to output a given key wins, merge in non-clashing other keys
- 
LAST_WINSThe last parser to output a given key wins, overriding previous parser values for a clashing key.
- 
KEEP_ALLWhere multiple parsers output a given key, store all their different (unique) values
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-