public class ReaderParameter extends LongDataParameterHolder
| 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.
|
writeBufferTypepublic 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 ParameterHolderos - database outputStreamIOException - if any error occur when reading readerpublic 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 reading readerpublic MariaDbType getMariaDbType()
getMariaDbType in class ParameterHolderpublic String toString()
ParameterHoldertoString in class ParameterHolderpublic boolean isLongData()
isLongData in class LongDataParameterHolderCopyright © 2016. All rights reserved.