Class Strings.TxtDecoder
- java.lang.Object
-
- com.impossibl.postgres.system.procs.Strings.TxtDecoder
-
- All Implemented Interfaces:
Type.Codec.Decoder<CharSequence>
- Direct Known Subclasses:
Unknowns.TxtDecoder
- Enclosing class:
- Strings
public static class Strings.TxtDecoder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
getDefaultClass
public Class<String> getDefaultClass()
- Specified by:
getDefaultClass
in interfaceType.Codec.Decoder<CharSequence>
-
decodeNativeValue
protected String decodeNativeValue(Context context, Type type, Short typeLength, Integer typeModifier, CharSequence buffer, Class<?> targetClass, Object targetContext) throws IOException, ParseException
- Throws:
IOException
ParseException
-
convertOutput
protected Object convertOutput(Context context, N decoded, Class<?> targetClass, Object targetContext) throws IOException
- Throws:
IOException
-
decodeValue
protected Object decodeValue(Context context, Type type, Short typeLength, Integer typeModifier, CharSequence buffer, Class<?> targetClass, Object targetContext) throws IOException, ParseException
- Throws:
IOException
ParseException
-
shouldRespectMaxLength
protected boolean shouldRespectMaxLength()
-
enableRespectMaxLength
protected void enableRespectMaxLength()
-
decode
public Object decode(Context context, Type type, Short typeLength, Integer typeModifier, CharSequence buffer, Class<?> targetClass, Object targetContext) throws IOException
- Specified by:
decode
in interfaceType.Codec.Decoder<CharSequence>
- Throws:
IOException
-
-