public class StreamParameter extends LongDataParameterHolder
mariaDbCharset
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.
|
isLongData, isNotLongData, isNullParameter, setMariaDbServerCharset
writeBufferType
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(OutputStream os) throws IOException
writeTo
in class ParameterHolder
os
- database outputStreamIOException
- if any error occur when reader streampublic long getApproximateTextProtocolLength() throws IOException
getApproximateTextProtocolLength
in class ParameterHolder
IOException
- if error reading streampublic void writeBinary(PacketOutputStream os) throws IOException
writeBinary
in class LongDataParameterHolder
os
- database outputStreamIOException
- if any error occur when reader streampublic String toString()
ParameterHolder
toString
in class ParameterHolder
public MariaDbType getMariaDbType()
getMariaDbType
in class ParameterHolder
Copyright © 2016. All rights reserved.