public class StreamParameter extends LongDataParameterHolder
| 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() |
String |
toString()
Nice formatting of prepared statements using PreparedStatement.toString().
|
void |
writeBinary(PacketOutputStream os)
Write stream in binary format.
|
void |
writeTo(OutputStream os)
Write stream in text format.
|
isLongDatawriteBufferTypepublic 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(OutputStream os) throws IOException
writeTo in class ParameterHolderos - database outputStreamIOException - if any error occur when reader streampublic long getApproximateTextProtocolLength()
throws IOException
getApproximateTextProtocolLength in class ParameterHolderIOException - if error reading streampublic void writeBinary(PacketOutputStream os) throws IOException
writeBinary in class LongDataParameterHolderos - database outputStreamIOException - if any error occur when reader streampublic String toString()
ParameterHoldertoString in class ParameterHolderpublic MariaDbType getMariaDbType()
getMariaDbType in class ParameterHolderCopyright © 2016. All rights reserved.