Class StringConverter


  • public abstract class StringConverter
    extends java.lang.Object
    • Constructor Detail

      • StringConverter

        public StringConverter()
    • Method Detail

      • registerDefault

        static <T> void registerDefault​(DslJson<T> json)
      • serializeShortNullable

        public static void serializeShortNullable​(@Nullable
                                                  java.lang.String value,
                                                  JsonWriter sw)
      • serializeShort

        public static void serializeShort​(java.lang.String value,
                                          JsonWriter sw)
      • serializeNullable

        public static void serializeNullable​(@Nullable
                                             java.lang.String value,
                                             JsonWriter sw)
      • serialize

        public static void serialize​(java.lang.String value,
                                     JsonWriter sw)
      • deserialize

        public static java.lang.String deserialize​(JsonReader reader)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeNullable

        @Nullable
        public static java.lang.String deserializeNullable​(JsonReader reader)
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeCollection

        public static java.util.ArrayList<java.lang.String> deserializeCollection​(JsonReader reader)
                                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeCollection

        public static void deserializeCollection​(JsonReader reader,
                                                 java.util.Collection<java.lang.String> res)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeNullableCollection

        public static java.util.ArrayList<java.lang.String> deserializeNullableCollection​(JsonReader reader)
                                                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeNullableCollection

        public static void deserializeNullableCollection​(JsonReader reader,
                                                         java.util.Collection<java.lang.String> res)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • serialize

        public static void serialize​(java.util.List<java.lang.String> list,
                                     JsonWriter writer)