Package org.mariadb.jdbc.codec.list
Class LineStringCodec
- java.lang.Object
-
- org.mariadb.jdbc.codec.list.LineStringCodec
-
- All Implemented Interfaces:
Codec<LineString>
public class LineStringCodec extends Object implements Codec<LineString>
-
-
Field Summary
Fields Modifier and Type Field Description static LineStringCodecINSTANCE
-
Constructor Summary
Constructors Constructor Description LineStringCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanDecode(ColumnDefinitionPacket column, Class<?> type)booleancanEncode(Object value)StringclassName()LineStringdecodeBinary(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal)LineStringdecodeText(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal)voidencodeBinary(PacketWriter encoder, Object value, Calendar cal, Long maxLength)voidencodeText(PacketWriter encoder, Context context, Object value, Calendar cal, Long maxLength)intgetBinaryEncodeType()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mariadb.jdbc.plugin.Codec
canEncodeLongData, encodeData, encodeLongData
-
-
-
-
Field Detail
-
INSTANCE
public static final LineStringCodec INSTANCE
-
-
Method Detail
-
className
public String className()
- Specified by:
classNamein interfaceCodec<LineString>
-
canDecode
public boolean canDecode(ColumnDefinitionPacket column, Class<?> type)
- Specified by:
canDecodein interfaceCodec<LineString>
-
canEncode
public boolean canEncode(Object value)
- Specified by:
canEncodein interfaceCodec<LineString>
-
decodeText
public LineString decodeText(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal) throws SQLDataException
- Specified by:
decodeTextin interfaceCodec<LineString>- Throws:
SQLDataException
-
decodeBinary
public LineString decodeBinary(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal) throws SQLDataException
- Specified by:
decodeBinaryin interfaceCodec<LineString>- Throws:
SQLDataException
-
encodeText
public void encodeText(PacketWriter encoder, Context context, Object value, Calendar cal, Long maxLength) throws IOException
- Specified by:
encodeTextin interfaceCodec<LineString>- Throws:
IOException
-
encodeBinary
public void encodeBinary(PacketWriter encoder, Object value, Calendar cal, Long maxLength) throws IOException
- Specified by:
encodeBinaryin interfaceCodec<LineString>- Throws:
IOException
-
getBinaryEncodeType
public int getBinaryEncodeType()
- Specified by:
getBinaryEncodeTypein interfaceCodec<LineString>
-
-