Package org.apache.tika.pipes
Enum HandlerConfig.PARSE_MODE
- java.lang.Object
-
- java.lang.Enum<HandlerConfig.PARSE_MODE>
-
- org.apache.tika.pipes.HandlerConfig.PARSE_MODE
-
- All Implemented Interfaces:
Serializable
,Comparable<HandlerConfig.PARSE_MODE>
- Enclosing class:
- HandlerConfig
public static enum HandlerConfig.PARSE_MODE extends Enum<HandlerConfig.PARSE_MODE>
RMETA
"recursive metadata" is the same as the -J option in tika-app and the /rmeta endpoint in tika-server. Each embedded file is represented as its own metadata object.CONCATENATE
is similar to the legacy tika-app behavior and the /tika endpoint (accept: application/json) in tika-server. This concatenates the contents of embedded files and returns a single metadata object for the file no matter how many embedded objects there are; this option throws away metadata from embedded objects and silently skips exceptions in embedded objects.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONCATENATE
RMETA
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HandlerConfig.PARSE_MODE
parseMode(String modeString)
static HandlerConfig.PARSE_MODE
valueOf(String name)
Returns the enum constant of this type with the specified name.static HandlerConfig.PARSE_MODE[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RMETA
public static final HandlerConfig.PARSE_MODE RMETA
-
CONCATENATE
public static final HandlerConfig.PARSE_MODE CONCATENATE
-
-
Method Detail
-
values
public static HandlerConfig.PARSE_MODE[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HandlerConfig.PARSE_MODE c : HandlerConfig.PARSE_MODE.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HandlerConfig.PARSE_MODE valueOf(String name)
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
-
parseMode
public static HandlerConfig.PARSE_MODE parseMode(String modeString)
-
-