com.glookast.commons.timecode.json.TimecodeDeserializer 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.Timecode;
import java.io.IOException;
public class TimecodeDeserializer extends StdDeserializer
{
protected TimecodeDeserializer()
{
super(Timecode.class);
}
@Override
public Timecode deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JsonProcessingException
{
return Timecode.valueOf(p.getText());
}
}