public static class Strings.TxtDecoder extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
com.impossibl.postgres.system.procs.AutoConvertingDecoder.Converter<N> |
static class |
com.impossibl.postgres.system.procs.AutoConvertingDecoder.ToStringConverter<N> |
Modifier and Type | Method and Description |
---|---|
protected Object |
convertOutput(Context context,
N decoded,
Class<?> targetClass,
Object targetContext) |
Object |
decode(Context context,
Type type,
Short typeLength,
Integer typeModifier,
CharSequence buffer,
Class<?> targetClass,
Object targetContext) |
protected String |
decodeNativeValue(Context context,
Type type,
Short typeLength,
Integer typeModifier,
CharSequence buffer,
Class<?> targetClass,
Object targetContext) |
protected Object |
decodeValue(Context context,
Type type,
Short typeLength,
Integer typeModifier,
CharSequence buffer,
Class<?> targetClass,
Object targetContext) |
protected void |
enableRespectMaxLength() |
Class<String> |
getDefaultClass() |
protected boolean |
shouldRespectMaxLength() |
public Class<String> getDefaultClass()
getDefaultClass
in interface Type.Codec.Decoder<CharSequence>
protected String decodeNativeValue(Context context, Type type, Short typeLength, Integer typeModifier, CharSequence buffer, Class<?> targetClass, Object targetContext) throws IOException, ParseException
IOException
ParseException
protected Object convertOutput(Context context, N decoded, Class<?> targetClass, Object targetContext) throws IOException
IOException
protected Object decodeValue(Context context, Type type, Short typeLength, Integer typeModifier, CharSequence buffer, Class<?> targetClass, Object targetContext) throws IOException, ParseException
IOException
ParseException
protected boolean shouldRespectMaxLength()
protected void enableRespectMaxLength()
public Object decode(Context context, Type type, Short typeLength, Integer typeModifier, CharSequence buffer, Class<?> targetClass, Object targetContext) throws IOException
decode
in interface Type.Codec.Decoder<CharSequence>
IOException