Package com.google.common.geometry
Class S2LaxPolylineShape.Coder
java.lang.Object
com.google.common.geometry.S2LaxPolylineShape.Coder
- All Implemented Interfaces:
S2Coder<S2LaxPolylineShape>
- Enclosing interface:
S2LaxPolylineShape
@GwtIncompatible("Uses EncodedS2PointVector")
public static class S2LaxPolylineShape.Coder
extends Object
implements S2Coder<S2LaxPolylineShape>
An encoder/decoder of
S2LaxPolylineShapes.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final S2LaxPolylineShape.CoderAn instance ofS2LaxPolylineShape.Coderwhich encodes/decodesS2LaxPolylineShapes in theCOMPACTformat.(package private) static final S2LaxPolylineShape.CoderAn instance ofS2LaxPolylineShape.Coderwhich encodes/decodesS2LaxPolylineShapes in theFASTformat. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(PrimitiveArrays.Bytes data, PrimitiveArrays.Cursor cursor) voidencode(S2LaxPolylineShape shape, OutputStream output) Encodesvaluetooutput.
-
Field Details
-
FAST
An instance ofS2LaxPolylineShape.Coderwhich encodes/decodesS2LaxPolylineShapes in theFASTformat. -
COMPACT
An instance ofS2LaxPolylineShape.Coderwhich encodes/decodesS2LaxPolylineShapes in theCOMPACTformat. -
coder
-
-
Constructor Details
-
Coder
-
-
Method Details
-
encode
Description copied from interface:S2CoderEncodesvaluetooutput.- Specified by:
encodein interfaceS2Coder<S2LaxPolylineShape>- Throws:
IOException
-
decode
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<S2LaxPolylineShape>
-