Package com.google.common.geometry
Class S2Point.Shape.Coder
- java.lang.Object
-
- com.google.common.geometry.S2Point.Shape.Coder
-
- All Implemented Interfaces:
S2Coder<S2Point.Shape>
- Enclosing class:
- S2Point.Shape
@GwtCompatible public static class S2Point.Shape.Coder extends Object implements S2Coder<S2Point.Shape>
An encoder/decoder ofS2Point.Shapes.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S2Point.Shapedecode(PrimitiveArrays.Bytes data, PrimitiveArrays.Cursor cursor)voidencode(S2Point.Shape shape, OutputStream output)Encodesvaluetooutput.
-
-
-
Method Detail
-
encode
public void encode(S2Point.Shape shape, OutputStream output) throws IOException
Description copied from interface:S2CoderEncodesvaluetooutput.- Specified by:
encodein interfaceS2Coder<S2Point.Shape>- Throws:
IOException
-
decode
public S2Point.Shape decode(PrimitiveArrays.Bytes data, PrimitiveArrays.Cursor cursor)
Description copied from interface:S2CoderDecodes a value of typeS2Coderfromdatastarting atcursor.position.cursor.positionis updated to the position of the first byte indatafollowing the encoded value.- Specified by:
decodein interfaceS2Coder<S2Point.Shape>
-
-