public class ReaderParameter extends Object implements Cloneable, ParameterHolder
BINARY_INTRODUCER, QUOTE
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
|
ColumnType |
getColumnType() |
boolean |
isLongData() |
boolean |
isNullData() |
String |
toString() |
void |
writeBinary(PacketOutputStream pos)
Write data to socket in binary format.
|
void |
writeTo(PacketOutputStream pos)
Write reader to database in text format.
|
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(PacketOutputStream pos) throws IOException
writeTo
in interface ParameterHolder
pos
- database outputStreamIOException
- if any error occur when reading readerpublic long getApproximateTextProtocolLength() throws IOException
getApproximateTextProtocolLength
in interface ParameterHolder
IOException
- if error reading streampublic void writeBinary(PacketOutputStream pos) throws IOException
writeBinary
in interface ParameterHolder
pos
- socket output streamIOException
- if socket error occurpublic ColumnType getColumnType()
getColumnType
in interface ParameterHolder
public String toString()
toString
in interface ParameterHolder
toString
in class Object
public boolean isNullData()
isNullData
in interface ParameterHolder
public boolean isLongData()
isLongData
in interface ParameterHolder
Copyright © 2017. All rights reserved.