All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.jcommon.geo.CountryISO3JsonDeserializer Maven / Gradle / Ivy

package net.sf.jcommon.geo;

import java.io.IOException;

import org.codehaus.jackson.JsonParser;
import org.codehaus.jackson.JsonProcessingException;
import org.codehaus.jackson.map.DeserializationContext;
import org.codehaus.jackson.map.JsonDeserializer;

public class CountryISO3JsonDeserializer extends JsonDeserializer {
	 
	@Override
	public Country deserialize(JsonParser parser, DeserializationContext ctx)
			throws IOException, JsonProcessingException {
		return Country.getCountries().findByISO3(parser.getText());
	}
	 
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy