public class InputStreamValueEncoder extends AbstractValueEncoder
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
streamConvertBuf |
charEncoding, exceptionInterceptor, preserveInstants, propertySet, sendFractionalSeconds, sendFractionalSecondsForTime, serverSession| Constructor and Description |
|---|
InputStreamValueEncoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
encodeAsBinary(Message msg,
BindValue binding) |
void |
encodeAsText(Message msg,
BindValue binding) |
private void |
escapeblockFast(byte[] buf,
NativePacketPayload packet,
int size) |
byte[] |
getBytes(BindValue binding) |
java.lang.String |
getString(BindValue binding) |
protected byte[] |
streamToBytes(java.io.InputStream in,
long length,
NativePacketPayload packet) |
adjustDuration, adjustLocalDateTime, adjustLocalTime, adjustTime, adjustTimestamp, encodeAsQueryAttribute, escapeBytesIfNeeded, getBinaryLength, getScaled, getTextLength, init, writeDate, writeDateTime, writeDateTimeWithOffset, writeTimepublic byte[] getBytes(BindValue binding)
getBytes in interface ValueEncodergetBytes in class AbstractValueEncoderpublic java.lang.String getString(BindValue binding)
public void encodeAsText(Message msg, BindValue binding)
encodeAsText in interface ValueEncoderencodeAsText in class AbstractValueEncoderprotected byte[] streamToBytes(java.io.InputStream in,
long length,
NativePacketPayload packet)
private final void escapeblockFast(byte[] buf,
NativePacketPayload packet,
int size)