com.dslplatform.json
Class StringConverter

java.lang.Object
  extended by com.dslplatform.json.StringConverter

public abstract class StringConverter
extends Object


Field Summary
static JsonReader.ReadObject<String> READER
           
static JsonReader.ReadObject<StringBuffer> READER_BUFFER
           
static JsonReader.ReadObject<StringBuilder> READER_BUILDER
           
static JsonWriter.WriteObject<String> WRITER
           
static JsonWriter.WriteObject<CharSequence> WRITER_CHARS
           
 
Constructor Summary
StringConverter()
           
 
Method Summary
static String deserialize(JsonReader reader)
           
static ArrayList<String> deserializeCollection(JsonReader reader)
           
static void deserializeCollection(JsonReader reader, Collection<String> res)
           
static String deserializeNullable(JsonReader reader)
           
static ArrayList<String> deserializeNullableCollection(JsonReader reader)
           
static void deserializeNullableCollection(JsonReader reader, Collection<String> res)
           
static void serialize(List<String> list, JsonWriter writer)
           
static void serialize(String value, JsonWriter sw)
           
static void serializeNullable(String value, JsonWriter sw)
           
static void serializeShort(String value, JsonWriter sw)
           
static void serializeShortNullable(String value, JsonWriter sw)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

READER

public static final JsonReader.ReadObject<String> READER

WRITER

public static final JsonWriter.WriteObject<String> WRITER

WRITER_CHARS

public static final JsonWriter.WriteObject<CharSequence> WRITER_CHARS

READER_BUILDER

public static final JsonReader.ReadObject<StringBuilder> READER_BUILDER

READER_BUFFER

public static final JsonReader.ReadObject<StringBuffer> READER_BUFFER
Constructor Detail

StringConverter

public StringConverter()
Method Detail

serializeShortNullable

public static void serializeShortNullable(@Nullable
                                          String value,
                                          JsonWriter sw)

serializeShort

public static void serializeShort(String value,
                                  JsonWriter sw)

serializeNullable

public static void serializeNullable(@Nullable
                                     String value,
                                     JsonWriter sw)

serialize

public static void serialize(String value,
                             JsonWriter sw)

deserialize

public static String deserialize(JsonReader reader)
                          throws IOException
Throws:
IOException

deserializeNullable

@Nullable
public static String deserializeNullable(JsonReader reader)
                                  throws IOException
Throws:
IOException

deserializeCollection

public static ArrayList<String> deserializeCollection(JsonReader reader)
                                               throws IOException
Throws:
IOException

deserializeCollection

public static void deserializeCollection(JsonReader reader,
                                         Collection<String> res)
                                  throws IOException
Throws:
IOException

deserializeNullableCollection

public static ArrayList<String> deserializeNullableCollection(JsonReader reader)
                                                       throws IOException
Throws:
IOException

deserializeNullableCollection

public static void deserializeNullableCollection(JsonReader reader,
                                                 Collection<String> res)
                                          throws IOException
Throws:
IOException

serialize

public static void serialize(List<String> list,
                             JsonWriter writer)


Copyright © 2019. All rights reserved.