public class StringValueEncoder extends AbstractValueEncoder
| Modifier and Type | Field and Description |
|---|---|
private java.nio.charset.CharsetEncoder |
charsetEncoder
Charset encoder used to escape if needed, such as Yen sign in SJIS
|
charEncoding, exceptionInterceptor, preserveInstants, propertySet, sendFractionalSeconds, sendFractionalSecondsForTime, serverSession| Constructor and Description |
|---|
StringValueEncoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
encodeAsBinary(Message msg,
BindValue binding) |
void |
encodeAsQueryAttribute(Message msg,
BindValue binding) |
byte[] |
getBytes(BindValue binding) |
java.lang.String |
getString(BindValue binding) |
void |
init(PropertySet pset,
ServerSession serverSess,
ExceptionInterceptor excInterceptor) |
private boolean |
isEscapeNeededForString(java.lang.String x,
int stringLength) |
adjustDuration, adjustLocalDateTime, adjustLocalTime, adjustTime, adjustTimestamp, encodeAsText, escapeBytesIfNeeded, getBinaryLength, getScaled, getTextLength, writeDate, writeDateTime, writeDateTimeWithOffset, writeTimeprivate java.nio.charset.CharsetEncoder charsetEncoder
public void init(PropertySet pset, ServerSession serverSess, ExceptionInterceptor excInterceptor)
init in interface ValueEncoderinit in class AbstractValueEncoderpublic byte[] getBytes(BindValue binding)
getBytes in interface ValueEncodergetBytes in class AbstractValueEncoderpublic java.lang.String getString(BindValue binding)
public void encodeAsQueryAttribute(Message msg, BindValue binding)
encodeAsQueryAttribute in interface ValueEncoderencodeAsQueryAttribute in class AbstractValueEncoderprivate boolean isEscapeNeededForString(java.lang.String x,
int stringLength)