com.backendless.geo.BackendlessGeometryWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of backendless Show documentation
Show all versions of backendless Show documentation
Android SDK used by developers to provide Backendless API in apps.
package com.backendless.geo;
import com.backendless.persistence.Geometry;
import weborb.writer.IProtocolFormatter;
import weborb.writer.ITypeWriter;
import weborb.writer.MessageWriter;
import java.io.IOException;
public class BackendlessGeometryWriter implements ITypeWriter
{
@Override
public void write( Object o, IProtocolFormatter iProtocolFormatter ) throws IOException
{
Geometry geometry = (Geometry) o;
MessageWriter.writeObject( geometry.asWKT(), iProtocolFormatter );
}
@Override
public boolean isReferenceableType()
{
return false;
}
}