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:
  • Constructor Details

    • TikaContent

      public TikaContent(ContentHandler content, org.apache.tika.metadata.Metadata metadata, org.apache.tika.mime.MediaType mediaType)
  • Method Details

    • 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