Class TikaContentExtractor.TikaContent
java.lang.Object
org.apache.cxf.jaxrs.ext.search.tika.TikaContentExtractor.TikaContent
- All Implemented Interfaces:
Serializable
- Enclosing class:
- TikaContentExtractor
Extracted content, metadata and media type container
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTikaContent(ContentHandler content, org.apache.tika.metadata.Metadata metadata, org.apache.tika.mime.MediaType mediaType) -
Method Summary
Modifier and TypeMethodDescriptionReturn the content cached by ContentHandlerorg.apache.tika.mime.MediaTypeReturn the detected media type of the contentorg.apache.tika.metadata.MetadataReturn the metadata
-
Constructor Details
-
TikaContent
public TikaContent(ContentHandler content, org.apache.tika.metadata.Metadata metadata, org.apache.tika.mime.MediaType mediaType)
-
-
Method Details
-
getContent
Return the content cached by ContentHandler- Returns:
- the content, may be empty or null if a custom non-caching ContentHandler was used to parse the content
-
getMetadata
public org.apache.tika.metadata.Metadata getMetadata()Return the metadata- Returns:
- the metadata
-
getMediaType
public org.apache.tika.mime.MediaType getMediaType()Return the detected media type of the content- Returns:
- the media type, null if no auto-detection was done
-