public class WriteableGeoJSON extends WriteableValue
Modifier and Type | Field and Description |
---|---|
ShapeWriter |
jsonWriter |
Shape |
shape |
Constructor and Description |
---|
WriteableGeoJSON(Shape shape,
ShapeWriter jsonWriter) |
Modifier and Type | Method and Description |
---|---|
Object |
resolve(Object o,
JavaBinCodec codec)
Examine and attempt to serialize the given object, using a
JavaBinCodec to write it to a stream. |
String |
toString() |
void |
write(String name,
TextResponseWriter writer) |
public final Shape shape
public final ShapeWriter jsonWriter
public WriteableGeoJSON(Shape shape, ShapeWriter jsonWriter)
public Object resolve(Object o, JavaBinCodec codec) throws IOException
JavaBinCodec.ObjectResolver
JavaBinCodec
to write it to a stream.o
- the object that the caller wants serialized.codec
- used to actually serialize o
.o
itself if it could not be serialized, or null
if the whole object was successfully serialized.IOException
JavaBinCodec
public void write(String name, TextResponseWriter writer) throws IOException
write
in class WriteableValue
IOException