public class StreamParameter extends Object implements ParameterHolder
| 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() |
boolean |
isLongData() |
boolean |
isNullData() |
String |
toString() |
void |
writeBinary(PacketOutputStream os)
Write stream in binary format.
|
void |
writeTo(PacketOutputStream os)
Write stream in text format.
|
void |
writeUnsafeTo(PacketOutputStream os)
Write stream in text format without checking buffer size.
|
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(PacketOutputStream os) throws IOException
writeTo in interface ParameterHolderos - database outputStreamIOException - if any error occur when reader streampublic void writeUnsafeTo(PacketOutputStream os) throws IOException
writeUnsafeTo in interface ParameterHolderos - database outputStreamIOException - if any error occur when reader streampublic long getApproximateTextProtocolLength()
throws IOException
getApproximateTextProtocolLength in interface ParameterHolderIOException - if error reading streampublic void writeBinary(PacketOutputStream os) throws IOException
writeBinary in interface ParameterHolderos - database outputStreamIOException - if any error occur when reader streampublic String toString()
toString in interface ParameterHoldertoString in class Objectpublic MariaDbType getMariaDbType()
getMariaDbType in interface ParameterHolderpublic boolean isLongData()
isLongData in interface ParameterHolderpublic boolean isNullData()
isNullData in interface ParameterHolderCopyright © 2016. All rights reserved.