public class ByteArrayParameter extends Object implements Cloneable, ParameterHolder
BINARY_INTRODUCER, QUOTE| Constructor and Description |
|---|
ByteArrayParameter(byte[] bytes,
boolean noBackslashEscapes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeLongData() |
int |
getApproximateTextProtocolLength() |
ColumnType |
getColumnType() |
boolean |
isNullData() |
String |
toString() |
void |
writeBinary(PacketOutputStream pos)
Write data to socket in binary format.
|
void |
writeLongData(PacketOutputStream pos) |
void |
writeTo(PacketOutputStream pos)
Write data to socket in text format.
|
public ByteArrayParameter(byte[] bytes,
boolean noBackslashEscapes)
public void writeTo(PacketOutputStream pos) throws IOException
writeTo in interface ParameterHolderpos - socket output streamIOException - if socket error occurpublic int getApproximateTextProtocolLength()
getApproximateTextProtocolLength in interface ParameterHolderpublic void writeBinary(PacketOutputStream pos) throws IOException
writeBinary in interface ParameterHolderpos - socket output streamIOException - if socket error occurpublic void writeLongData(PacketOutputStream pos) throws IOException
writeLongData in interface ParameterHolderIOExceptionpublic ColumnType getColumnType()
getColumnType in interface ParameterHolderpublic String toString()
toString in interface ParameterHoldertoString in class Objectpublic boolean isNullData()
isNullData in interface ParameterHolderpublic boolean canBeLongData()
canBeLongData in interface ParameterHolderCopyright © 2020 mariadb.com. All rights reserved.