public class WKTEncoder extends Encoder
Projection Coordinate System KKT serializer. Is responsible for serializing a projection coordinate system object object into a WKT string.
Constructor and Description |
---|
WKTEncoder() |
Modifier and Type | Method and Description |
---|---|
java.util.List<MediaType> |
createSupportedMediaTypes()
Creates a supported media type, here is the WKT expression type, “application/wkt”.
|
Representation |
toRepresentation(MediaType mediaType, java.lang.Object obj)
Serializes a Java object into a expression.
|
getSupportedMediaTypes, isEncodeAllow
public java.util.List<MediaType> createSupportedMediaTypes()
Creates a supported media type, here is the WKT expression type, “application/wkt”.
createSupportedMediaTypes
in class Encoder
public Representation toRepresentation(MediaType mediaType, java.lang.Object obj)
Serializes a Java object into a expression.
toRepresentation
in class Encoder
mediaType
- The format of the presentation, ie the media type.obj
- The Java object to be serialized.