Class TikaContentExtractor.TikaContent
- java.lang.Object
-
- org.apache.cxf.jaxrs.ext.search.tika.TikaContentExtractor.TikaContent
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- TikaContentExtractor
public static class TikaContentExtractor.TikaContent extends Object implements Serializable
Extracted content, metadata and media type container- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TikaContent(ContentHandler content, org.apache.tika.metadata.Metadata metadata, org.apache.tika.mime.MediaType mediaType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContent()Return the content cached by ContentHandlerorg.apache.tika.mime.MediaTypegetMediaType()Return the detected media type of the contentorg.apache.tika.metadata.MetadatagetMetadata()Return the metadata
-
-
-
Constructor Detail
-
TikaContent
public TikaContent(ContentHandler content, org.apache.tika.metadata.Metadata metadata, org.apache.tika.mime.MediaType mediaType)
-
-
Method Detail
-
getContent
public String 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
-
-