Class Strings.BinDecoder
- java.lang.Object
-
- com.impossibl.postgres.system.procs.Strings.BinDecoder
-
- All Implemented Interfaces:
Type.Codec.Decoder<io.netty.buffer.ByteBuf>
- Enclosing class:
- Strings
public static class Strings.BinDecoder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BinDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectconvertOutput(Context context, N decoded, java.lang.Class<?> targetClass, java.lang.Object targetContext)java.lang.Objectdecode(Context context, Type type, java.lang.Short typeLength, java.lang.Integer typeModifier, io.netty.buffer.ByteBuf buffer, java.lang.Class<?> targetClass, java.lang.Object targetContext)protected java.lang.StringdecodeNativeValue(Context context, Type type, java.lang.Short typeLength, java.lang.Integer typeModifier, io.netty.buffer.ByteBuf buffer, java.lang.Class<?> targetClass, java.lang.Object targetContext)protected java.lang.ObjectdecodeValue(Context context, Type type, java.lang.Short typeLength, java.lang.Integer typeModifier, io.netty.buffer.ByteBuf buffer, java.lang.Class<?> targetClass, java.lang.Object targetContext)protected voidenableRespectMaxLength()java.lang.Class<java.lang.String>getDefaultClass()protected booleanshouldRespectMaxLength()
-
-
-
Method Detail
-
getDefaultClass
public java.lang.Class<java.lang.String> getDefaultClass()
- Specified by:
getDefaultClassin interfaceType.Codec.Decoder<io.netty.buffer.ByteBuf>
-
decodeNativeValue
protected java.lang.String decodeNativeValue(Context context, Type type, java.lang.Short typeLength, java.lang.Integer typeModifier, io.netty.buffer.ByteBuf buffer, java.lang.Class<?> targetClass, java.lang.Object targetContext) throws java.io.IOException
- Throws:
java.io.IOException
-
convertOutput
protected java.lang.Object convertOutput(Context context, N decoded, java.lang.Class<?> targetClass, java.lang.Object targetContext) throws java.io.IOException
- Throws:
java.io.IOException
-
decodeValue
protected java.lang.Object decodeValue(Context context, Type type, java.lang.Short typeLength, java.lang.Integer typeModifier, io.netty.buffer.ByteBuf buffer, java.lang.Class<?> targetClass, java.lang.Object targetContext) throws java.io.IOException
- Throws:
java.io.IOException
-
shouldRespectMaxLength
protected boolean shouldRespectMaxLength()
-
enableRespectMaxLength
protected void enableRespectMaxLength()
-
decode
public java.lang.Object decode(Context context, Type type, java.lang.Short typeLength, java.lang.Integer typeModifier, io.netty.buffer.ByteBuf buffer, java.lang.Class<?> targetClass, java.lang.Object targetContext) throws java.io.IOException
- Specified by:
decodein interfaceType.Codec.Decoder<io.netty.buffer.ByteBuf>- Throws:
java.io.IOException
-
-