Class S2LaxPolygonShape.Coder
java.lang.Object
com.google.common.geometry.S2LaxPolygonShape.Coder
- All Implemented Interfaces:
S2Coder<S2LaxPolygonShape>
- Enclosing interface:
S2LaxPolygonShape
@GwtIncompatible("Uses ByteBuffer")
public static class S2LaxPolygonShape.Coder
extends Object
implements S2Coder<S2LaxPolygonShape>
An encoder/decoder of
S2LaxPolygonShapes.-
Method Summary
Modifier and TypeMethodDescriptiondecode(PrimitiveArrays.Bytes data, PrimitiveArrays.Cursor cursor) voidencode(S2LaxPolygonShape shape, OutputStream output) Encodesvaluetooutput.
-
Method Details
-
encode
Description copied from interface:S2CoderEncodesvaluetooutput.- Specified by:
encodein interfaceS2Coder<S2LaxPolygonShape>- Throws:
IOException
-
decode
Description copied from interface:S2CoderDecodes a value of typeTfromdatastarting atcursor.position.cursor.positionis updated to the position of the first byte indatafollowing the encoded value.- Specified by:
decodein interfaceS2Coder<S2LaxPolygonShape>
-