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

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

There is a newer version: 0.7.9
Show newest version
package com.podio.serialize;

import java.io.IOException;
import java.util.TimeZone;

import org.codehaus.jackson.JsonGenerator;
import org.codehaus.jackson.JsonProcessingException;
import org.codehaus.jackson.map.JsonSerializer;
import org.codehaus.jackson.map.SerializerProvider;

public class TimeZoneSerializer extends JsonSerializer {

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy