Class JsonMetadataDeserializer
- java.lang.Object
-
- org.apache.tika.metadata.serialization.JsonMetadataDeserializer
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Metadata>
public class JsonMetadataDeserializer extends Object implements com.google.gson.JsonDeserializer<Metadata>
Deserializer for Metadata If overriding this, remember that this is called from a static context. Share state only with great caution.
-
-
Constructor Summary
Constructors Constructor Description JsonMetadataDeserializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Metadata
deserialize(com.google.gson.JsonElement element, Type type, com.google.gson.JsonDeserializationContext context)
Deserializes a json object (equivalent to: Map) into a Metadata object.
-
-
-
Method Detail
-
deserialize
public Metadata deserialize(com.google.gson.JsonElement element, Type type, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
Deserializes a json object (equivalent to: Map) into a Metadata object. - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<Metadata>
- Parameters:
element
- to serializetype
- (ignored)context
- (ignored)- Returns:
- Metadata
- Throws:
com.google.gson.JsonParseException
- if element is not able to be parsed
-
-