Package org.apache.tika.utils
Class ParserUtils
- java.lang.Object
-
- org.apache.tika.utils.ParserUtils
-
public class ParserUtils extends java.lang.Object
Helper util methods for Parsers themselves.
-
-
Field Summary
Fields Modifier and Type Field Description static Property
EMBEDDED_EXCEPTION
static Property
EMBEDDED_PARSER
static java.lang.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 java.lang.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, java.lang.Throwable failure, Metadata metadata)
-
-
-
Field Detail
-
X_PARSED_BY
public static final java.lang.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
-
-
Method Detail
-
cloneMetadata
public static Metadata cloneMetadata(Metadata m)
Does a deep clone of a Metadata object.
-
getParserClassname
public static java.lang.String getParserClassname(Parser parser)
Identifies the real class name of theParser
, unwrapping anyParserDecorator
decorations on top of it.
-
-