public class ByteArrayParameter extends Object implements ParameterHolder, Cloneable
Constructor and Description |
---|
ByteArrayParameter(byte[] bytes,
boolean noBackslashEscapes) |
Modifier and Type | Method and Description |
---|---|
long |
getApproximateTextProtocolLength() |
MariaDbType |
getMariaDbType() |
boolean |
isLongData() |
boolean |
isNullData() |
String |
toString() |
void |
writeBinary(PacketOutputStream writeBuffer) |
void |
writeTo(PacketOutputStream os)
Write parameter value.
|
void |
writeUnsafeTo(PacketOutputStream os) |
public ByteArrayParameter(byte[] bytes, boolean noBackslashEscapes)
public void writeTo(PacketOutputStream os) throws IOException
ParameterHolder
writeTo
in interface ParameterHolder
os
- the stream to write toIOException
- when something goes wrongpublic void writeUnsafeTo(PacketOutputStream os) throws IOException
writeUnsafeTo
in interface ParameterHolder
IOException
public long getApproximateTextProtocolLength()
getApproximateTextProtocolLength
in interface ParameterHolder
public void writeBinary(PacketOutputStream writeBuffer)
writeBinary
in interface ParameterHolder
public MariaDbType getMariaDbType()
getMariaDbType
in interface ParameterHolder
public String toString()
toString
in interface ParameterHolder
toString
in class Object
public boolean isLongData()
isLongData
in interface ParameterHolder
public boolean isNullData()
isNullData
in interface ParameterHolder
Copyright © 2017. All rights reserved.