Package org.gbif.dwc.terms.jackson
Class TermSerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<Term>
-
- org.gbif.dwc.terms.jackson.TermSerializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
public class TermSerializer extends com.fasterxml.jackson.databind.JsonSerializer<Term>
A json serializer that turns dwc terms into their full qualified term name.
-
-
Constructor Summary
Constructors Constructor Description TermSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
serialize(Term value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)
-
-
-
Constructor Detail
-
TermSerializer
public TermSerializer()
-
-
Method Detail
-
serialize
public void serialize(Term value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException
- Specified by:
serialize
in classcom.fasterxml.jackson.databind.JsonSerializer<Term>
- Throws:
IOException
-
-