Class Names.TxtDecoder

  • All Implemented Interfaces:
    Type.Codec.Decoder<java.lang.CharSequence>
    Enclosing class:
    Names

    public static class Names.TxtDecoder
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TxtDecoder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object decode​(Context context, Type type, java.lang.Short typeLength, java.lang.Integer typeModifier, java.lang.CharSequence buffer, java.lang.Class<?> targetClass, java.lang.Object targetContext)  
      protected java.lang.Object decodeValue​(Context context, Type type, java.lang.Short typeLength, java.lang.Integer typeModifier, java.lang.CharSequence buffer, java.lang.Class<?> targetClass, java.lang.Object targetContext)  
      protected void enableRespectMaxLength()  
      java.lang.Class<?> getDefaultClass()  
      protected boolean shouldRespectMaxLength()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TxtDecoder

        public TxtDecoder()
    • Method Detail

      • getDefaultClass

        public java.lang.Class<?> getDefaultClass()
      • decodeValue

        protected java.lang.Object decodeValue​(Context context,
                                               Type type,
                                               java.lang.Short typeLength,
                                               java.lang.Integer typeModifier,
                                               java.lang.CharSequence buffer,
                                               java.lang.Class<?> targetClass,
                                               java.lang.Object targetContext)
                                        throws java.io.IOException,
                                               java.text.ParseException
        Throws:
        java.io.IOException
        java.text.ParseException
      • 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,
                                       java.lang.CharSequence buffer,
                                       java.lang.Class<?> targetClass,
                                       java.lang.Object targetContext)
                                throws java.io.IOException
        Specified by:
        decode in interface Type.Codec.Decoder<java.lang.CharSequence>
        Throws:
        java.io.IOException