public class ReaderParameter extends LongDataParameterHolder
mariaDbCharset
Constructor and Description |
---|
ReaderParameter(Reader reader,
boolean noBackslashEscapes) |
ReaderParameter(Reader reader,
long length,
boolean noBackslashEscapes)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getApproximateTextProtocolLength()
Return approximated data calculated length for rewriting queries
|
MariaDbType |
getMariaDbType() |
boolean |
isLongData() |
String |
toString()
Nice formatting of prepared statements using PreparedStatement.toString().
|
void |
writeBinary(PacketOutputStream os)
Write reader to database in binary format.
|
void |
writeTo(OutputStream os)
Write reader to database in text format.
|
isNotLongData, isNullParameter, setMariaDbServerCharset
writeBufferType
public ReaderParameter(Reader reader, long length, boolean noBackslashEscapes)
reader
- reader to writelength
- max length to write (can be null)noBackslashEscapes
- must backslash be escapepublic ReaderParameter(Reader reader, boolean noBackslashEscapes)
public void writeTo(OutputStream os) throws IOException
writeTo
in class ParameterHolder
os
- database outputStreamIOException
- if any error occur when reading readerpublic 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 reading readerpublic MariaDbType getMariaDbType()
getMariaDbType
in class ParameterHolder
public String toString()
ParameterHolder
toString
in class ParameterHolder
public boolean isLongData()
isLongData
in class LongDataParameterHolder
Copyright © 2016. All rights reserved.