public class OBStreamParameter extends Object implements Cloneable, LongDataParameterHolder
BLOB_STREAM_READ_BUF_SIZEBINARY_INTRODUCER, QUOTE| Constructor and Description |
|---|
OBStreamParameter(boolean hasLobLocator,
byte[] bytes,
long length,
boolean noBackslashEscapes) |
OBStreamParameter(boolean hasLobLocator,
InputStream is,
long length,
boolean noBackslashEscapes)
Constructor.
|
OBStreamParameter(boolean hasLobLocator,
Lob lob,
long length,
boolean noBackslashEscapes) |
OBStreamParameter(InputStream is,
boolean noBackSlashEscapes) |
OBStreamParameter(InputStream is,
long length,
boolean noBackslashEscapes) |
| Modifier and Type | Method and Description |
|---|---|
int |
getApproximateTextProtocolLength()
Return approximated data calculated length.
|
ColumnType |
getColumnType() |
boolean |
isLongData() |
boolean |
isNullData() |
String |
toString() |
void |
writeBinary(PacketOutputStream pos)
Write data to socket in binary format.
|
boolean |
writeLongData(PacketOutputStream pos,
Options options,
int statementId,
short paramIndex)
Never used
|
boolean |
writePieceData(PacketOutputStream writer,
boolean first,
Options options) |
void |
writeTo(PacketOutputStream pos)
Write stream in text format.
|
public OBStreamParameter(boolean hasLobLocator,
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 OBStreamParameter(boolean hasLobLocator,
byte[] bytes,
long length,
boolean noBackslashEscapes)
public OBStreamParameter(boolean hasLobLocator,
Lob lob,
long length,
boolean noBackslashEscapes)
public OBStreamParameter(InputStream is, long length, boolean noBackslashEscapes)
public OBStreamParameter(InputStream is, boolean noBackSlashEscapes)
public void writeTo(PacketOutputStream pos) throws IOException
writeTo in interface ParameterHolderpos - database outputStreamIOException - if any error occur when reader streampublic int getApproximateTextProtocolLength()
getApproximateTextProtocolLength in interface ParameterHolderpublic void writeBinary(PacketOutputStream pos) throws IOException
writeBinary in interface ParameterHolderpos - socket output streamIOException - if socket error occurpublic String toString()
toString in interface ParameterHoldertoString in class Objectpublic ColumnType getColumnType()
getColumnType in interface ParameterHolderpublic boolean isNullData()
isNullData in interface ParameterHolderpublic boolean isLongData()
isLongData in interface ParameterHolderpublic boolean writePieceData(PacketOutputStream writer, boolean first, Options options) throws IOException
writePieceData in interface LongDataParameterHolderIOExceptionpublic boolean writeLongData(PacketOutputStream pos, Options options, int statementId, short paramIndex) throws IOException
writeLongData in interface LongDataParameterHolderpos - options - statementId - paramIndex - IOExceptionCopyright © 2022 oceanbase.com. All rights reserved.