Class GreedyTikaField

  • All Implemented Interfaces:
    Serializable

    public class GreedyTikaField
    extends TikaField
    The set of all Tika metadata represented as a single field inside MG4J.

    When using an AutoDetectDocumentFactory or any other factory in which metadata fields are user-definable or otherwise variable, it is impossible to provide a static listing of all available fields, as they depend on the actual factory used to parse the document. In this case, an instance of this class is used to return some useful data to the caller.

    See Also:
    Serialized Form
    • Field Detail

      • NAME

        public static String NAME
    • Constructor Detail

      • GreedyTikaField

        public GreedyTikaField​(String tikaName)
    • Method Detail

      • contentFromMetadata

        public String contentFromMetadata​(org.apache.tika.metadata.Metadata metadata)
        Description copied from class: TikaField
        Gets the content of this Tika field from the given metadata.
        Overrides:
        contentFromMetadata in class TikaField
        Parameters:
        metadata - the metadata.
        Returns:
        the content of this Tika field.