public class StreamParameter extends Object implements Cloneable, ParameterHolder
BINARY_INTRODUCER, QUOTE| Constructor and Description |
|---|
StreamParameter(InputStream is,
boolean noBackSlashEscapes) |
StreamParameter(InputStream is,
long length,
boolean noBackslashEscapes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeLongData() |
int |
getApproximateTextProtocolLength()
Return approximated data calculated length.
|
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 stream in text format.
|
public StreamParameter(InputStream is, long length, boolean noBackslashEscapes)
is - stream to writelength - max length to write (if null the whole stream will be send)noBackslashEscapes - must backslash be escapepublic StreamParameter(InputStream is, boolean noBackSlashEscapes)
public void writeTo(PacketOutputStream pos) throws IOException
writeTo in interface ParameterHolderpos - database outputStreamIOException - if any error occur when reader streampublic 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 String toString()
toString in interface ParameterHoldertoString in class Objectpublic ColumnType getColumnType()
getColumnType in interface ParameterHolderpublic boolean isNullData()
isNullData in interface ParameterHolderpublic boolean canBeLongData()
canBeLongData in interface ParameterHolderCopyright © 2020 mariadb.com. All rights reserved.