public static class Strings.BinDecoder 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> |
Constructor and Description |
---|
BinDecoder() |
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,
io.netty.buffer.ByteBuf buffer,
Class<?> targetClass,
Object targetContext) |
protected String |
decodeNativeValue(Context context,
Type type,
Short typeLength,
Integer typeModifier,
io.netty.buffer.ByteBuf buffer,
Class<?> targetClass,
Object targetContext) |
protected Object |
decodeValue(Context context,
Type type,
Short typeLength,
Integer typeModifier,
io.netty.buffer.ByteBuf buffer,
Class<?> targetClass,
Object targetContext) |
protected void |
enableRespectMaxLength() |
Class<String> |
getDefaultClass() |
protected boolean |
shouldRespectMaxLength() |
public Class<String> getDefaultClass()
getDefaultClass
in interface Type.Codec.Decoder<io.netty.buffer.ByteBuf>
protected String decodeNativeValue(Context context, Type type, Short typeLength, Integer typeModifier, io.netty.buffer.ByteBuf buffer, Class<?> targetClass, Object targetContext) throws IOException
IOException
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, io.netty.buffer.ByteBuf buffer, Class<?> targetClass, Object targetContext) throws IOException
IOException
protected boolean shouldRespectMaxLength()
protected void enableRespectMaxLength()
public Object decode(Context context, Type type, Short typeLength, Integer typeModifier, io.netty.buffer.ByteBuf buffer, Class<?> targetClass, Object targetContext) throws IOException
decode
in interface Type.Codec.Decoder<io.netty.buffer.ByteBuf>
IOException