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 and Description |
---|
CONCATENATE |
RMETA |
Modifier and Type | Method and 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.
|
public static final HandlerConfig.PARSE_MODE RMETA
public static final HandlerConfig.PARSE_MODE CONCATENATE
public static HandlerConfig.PARSE_MODE[] values()
for (HandlerConfig.PARSE_MODE c : HandlerConfig.PARSE_MODE.values()) System.out.println(c);
public static HandlerConfig.PARSE_MODE valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static HandlerConfig.PARSE_MODE parseMode(String modeString)
Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.