Package org.apache.tika.utils
Class ParserUtils
- java.lang.Object
-
- org.apache.tika.utils.ParserUtils
-
public class ParserUtils extends Object
Helper util methods for Parsers themselves.
-
-
Field Summary
Fields Modifier and Type Field Description static Property
EMBEDDED_EXCEPTION
static Property
EMBEDDED_PARSER
static String
X_PARSED_BY
-
Constructor Summary
Constructors Constructor Description ParserUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Metadata
cloneMetadata(Metadata m)
Does a deep clone of a Metadata object.static String
getParserClassname(Parser parser)
Identifies the real class name of theParser
, unwrapping anyParserDecorator
decorations on top of it.static void
recordParserDetails(Parser parser, Metadata metadata)
static void
recordParserFailure(Parser parser, Throwable failure, Metadata metadata)
-
-
-
Field Detail
-
X_PARSED_BY
public static final String X_PARSED_BY
- See Also:
- Constant Field Values
-
EMBEDDED_PARSER
public static final Property EMBEDDED_PARSER
-
EMBEDDED_EXCEPTION
public static final Property EMBEDDED_EXCEPTION
-
-