com.glookast.commons.timecode.json.TimecodeDurationDeserializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-timecode Show documentation
Show all versions of commons-timecode Show documentation
XML base schemas used for interfacing with Glookast Products
package com.glookast.commons.timecode.json;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
import com.glookast.commons.timecode.TimecodeDuration;
import java.io.IOException;
public class TimecodeDurationDeserializer extends StdDeserializer
{
protected TimecodeDurationDeserializer()
{
super(TimecodeDuration.class);
}
@Override
public TimecodeDuration deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JsonProcessingException
{
return TimecodeDuration.valueOf(p.getText());
}
}