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

com.podio.serialize.LocalDateSerializer Maven / Gradle / Ivy

package com.podio.serialize;

import java.io.IOException;

import org.codehaus.jackson.JsonGenerator;
import org.codehaus.jackson.JsonProcessingException;
import org.codehaus.jackson.map.JsonSerializer;
import org.codehaus.jackson.map.SerializerProvider;
import org.joda.time.LocalDate;

public class LocalDateSerializer extends JsonSerializer {

	@Override
	public void serialize(LocalDate value, JsonGenerator jgen,
			SerializerProvider provider) throws IOException,
			JsonProcessingException {
		jgen.writeString(DateTimeUtil.formatDate(value));
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy