it.unimi.di.mg4j.document.tika
Class GreedyTikaField
java.lang.Object
it.unimi.di.mg4j.document.tika.TikaField
it.unimi.di.mg4j.document.tika.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
Method Summary |
String |
contentFromMetadata(org.apache.tika.metadata.Metadata metadata)
Gets the content of this Tika field from the given metadata. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static String NAME
GreedyTikaField
public GreedyTikaField(String tikaName)
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.