public class ByteParameter extends java.lang.Object implements java.lang.Cloneable, ParameterHolder
Modifier and Type | Field and Description |
---|---|
private static char[] |
hexArray |
private int |
value |
BINARY_INTRODUCER, QUOTE
Constructor and Description |
---|
ByteParameter(byte value) |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeLongData() |
int |
getApproximateTextProtocolLength() |
ColumnType |
getColumnType() |
boolean |
isNullData() |
java.lang.String |
toString() |
void |
writeBinary(PacketOutputStream pos)
Write data to socket in binary format.
|
void |
writeTo(PacketOutputStream os)
Write Byte value to stream using TEXT protocol.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
writeLongData
public void writeTo(PacketOutputStream os) throws java.io.IOException
writeTo
in interface ParameterHolder
os
- the stream to write tojava.io.IOException
- if any socket error occurpublic int getApproximateTextProtocolLength()
getApproximateTextProtocolLength
in interface ParameterHolder
public void writeBinary(PacketOutputStream pos) throws java.io.IOException
writeBinary
in interface ParameterHolder
pos
- socket output streamjava.io.IOException
- if socket error occurpublic ColumnType getColumnType()
getColumnType
in interface ParameterHolder
public java.lang.String toString()
toString
in interface ParameterHolder
toString
in class java.lang.Object
public boolean isNullData()
isNullData
in interface ParameterHolder
public boolean canBeLongData()
canBeLongData
in interface ParameterHolder