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 of
S2Point.Shape
s.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final S2PointVectorCoder
(package private) static final S2Point.Shape.Coder
(package private) static final S2Point.Shape.Coder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode
(PrimitiveArrays.Bytes data, PrimitiveArrays.Cursor cursor) void
encode
(S2Point.Shape shape, OutputStream output) Encodesvalue
tooutput
.
-
Field Details
-
FAST
-
COMPACT
-
coder
-
-
Constructor Details
-
Coder
-
-
Method Details
-
encode
Description copied from interface:S2Coder
Encodesvalue
tooutput
.- Specified by:
encode
in interfaceS2Coder<S2Point.Shape>
- Throws:
IOException
-
decode
Description copied from interface:S2Coder
Decodes a value of typeS2Coder
fromdata
starting atcursor.position
.cursor.position
is updated to the position of the first byte indata
following the encoded value.- Specified by:
decode
in interfaceS2Coder<S2Point.Shape>
-