Class TikaMetadataExtractor
java.lang.Object
ddf.catalog.transformer.common.tika.TikaMetadataExtractor
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTikaMetadataExtractor(InputStream inputStream) Constructs a new tika extractor which parses the provided input stream into a tika Metadata object, the body text, and the metadata XMLTikaMetadataExtractor(InputStream inputStream, int maxBodyLength, int maxMetadataLength) Constructs a new tika extractor which parses the provided input stream into a tika Metadata object, the body text, and the metadata XML The body text is truncated after maxLength -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.tika.metadata.Metadata
-
Field Details
-
LOGGER
public static final org.slf4j.Logger LOGGER -
METADATA_LIMIT_REACHED_MSG
- See Also:
-
-
Constructor Details
-
TikaMetadataExtractor
public TikaMetadataExtractor(InputStream inputStream) throws org.apache.tika.exception.TikaException Constructs a new tika extractor which parses the provided input stream into a tika Metadata object, the body text, and the metadata XML- Parameters:
inputStream- - the input stream to be parsed- Throws:
org.apache.tika.exception.TikaException- - if parsing fails
-
TikaMetadataExtractor
public TikaMetadataExtractor(InputStream inputStream, int maxBodyLength, int maxMetadataLength) throws org.apache.tika.exception.TikaException Constructs a new tika extractor which parses the provided input stream into a tika Metadata object, the body text, and the metadata XML The body text is truncated after maxLength- Parameters:
inputStream- - the input stream to be parsedmaxBodyLength- - the max length of the parsed body textmaxMetadataLength- - the max length of the parsed metadata.- Throws:
org.apache.tika.exception.TikaException- - if parsing fails
-
-
Method Details
-
getBodyText
-
getMetadataXml
-
getMetadata
public org.apache.tika.metadata.Metadata getMetadata()
-