Class TikaContentExtractor.TikaContent

    • 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