Package org.mariadb.jdbc.codec
Class TextRowDecoder
- java.lang.Object
-
- org.mariadb.jdbc.codec.RowDecoder
-
- org.mariadb.jdbc.codec.TextRowDecoder
-
public class TextRowDecoder extends RowDecoder
-
-
Field Summary
-
Fields inherited from class org.mariadb.jdbc.codec.RowDecoder
columnCount, columns, index, length, NULL_LENGTH, readBuf
-
-
Constructor Summary
Constructors Constructor Description TextRowDecoder(int columnCount, ColumnDefinitionPacket[] columns, Configuration conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
decode(Codec<T> codec, java.util.Calendar cal)
boolean
decodeBoolean()
byte
decodeByte()
double
decodeDouble()
float
decodeFloat()
int
decodeInt()
long
decodeLong()
short
decodeShort()
void
setPosition(int newIndex)
Set length and pos indicator to asked index.boolean
wasNull()
-
Methods inherited from class org.mariadb.jdbc.codec.RowDecoder
getBooleanValue, getByteValue, getDoubleValue, getFloatValue, getIndex, getIntValue, getLongValue, getShortValue, getValue, getValue, getValue, setRow
-
-
-
-
Constructor Detail
-
TextRowDecoder
public TextRowDecoder(int columnCount, ColumnDefinitionPacket[] columns, Configuration conf)
-
-
Method Detail
-
decode
public <T> T decode(Codec<T> codec, java.util.Calendar cal) throws java.sql.SQLException
- Specified by:
decode
in classRowDecoder
- Throws:
java.sql.SQLException
-
decodeByte
public byte decodeByte() throws java.sql.SQLException
- Specified by:
decodeByte
in classRowDecoder
- Throws:
java.sql.SQLException
-
decodeBoolean
public boolean decodeBoolean() throws java.sql.SQLException
- Specified by:
decodeBoolean
in classRowDecoder
- Throws:
java.sql.SQLException
-
decodeShort
public short decodeShort() throws java.sql.SQLException
- Specified by:
decodeShort
in classRowDecoder
- Throws:
java.sql.SQLException
-
decodeInt
public int decodeInt() throws java.sql.SQLException
- Specified by:
decodeInt
in classRowDecoder
- Throws:
java.sql.SQLException
-
decodeLong
public long decodeLong() throws java.sql.SQLException
- Specified by:
decodeLong
in classRowDecoder
- Throws:
java.sql.SQLException
-
decodeFloat
public float decodeFloat() throws java.sql.SQLException
- Specified by:
decodeFloat
in classRowDecoder
- Throws:
java.sql.SQLException
-
decodeDouble
public double decodeDouble() throws java.sql.SQLException
- Specified by:
decodeDouble
in classRowDecoder
- Throws:
java.sql.SQLException
-
wasNull
public boolean wasNull()
- Specified by:
wasNull
in classRowDecoder
-
setPosition
public void setPosition(int newIndex)
Set length and pos indicator to asked index.- Specified by:
setPosition
in classRowDecoder
- Parameters:
newIndex
- index (0 is first).
-
-