public class StreamParameter extends LongDataParameter
| Constructor and Description |
|---|
StreamParameter(InputStream is,
boolean noBackSlashEscapes) |
StreamParameter(InputStream is,
long length,
boolean noBackslashEscapes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getApproximateTextProtocolLength()
Return approximated data calculated length.
|
MariaDbType |
getMariaDbType() |
boolean |
isNullData() |
void |
sendComLongData(int statementId,
short parameterId,
PacketOutputStream writer)
Send stream in one or many COM_STMT_LONG_DATA.
|
String |
toString() |
void |
writeTo(PacketOutputStream os)
Write stream in text format.
|
void |
writeUnsafeTo(PacketOutputStream os)
Write stream in text format without checking buffer size.
|
isLongDatapublic 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 os) throws IOException
os - database outputStreamIOException - if any error occur when reader streampublic void writeUnsafeTo(PacketOutputStream os) throws IOException
os - database outputStreamIOException - if any error occur when reader streampublic long getApproximateTextProtocolLength()
throws IOException
IOException - if error reading streampublic void sendComLongData(int statementId,
short parameterId,
PacketOutputStream writer)
throws IOException,
QueryException
sendComLongData in class LongDataParameterstatementId - statement idparameterId - parameter numberwriter - writerIOException - if any connection exception occurQueryException - if query size is to big according to server max_allowed_sizepublic String toString()
toString in interface ParameterHoldertoString in class Objectpublic MariaDbType getMariaDbType()
public boolean isNullData()
isNullData in interface ParameterHolderisNullData in class LongDataParameterCopyright © 2017. All rights reserved.