public abstract class StringConverter extends Object
| Modifier and Type | Field and Description |
|---|---|
static char[] |
EMPTY_ARRAY |
static JsonReader.ReadObject<String> |
READER |
static JsonReader.ReadObject<char[]> |
READER_ARRAY |
static JsonReader.ReadObject<StringBuffer> |
READER_BUFFER |
static JsonReader.ReadObject<StringBuilder> |
READER_BUILDER |
static JsonWriter.WriteObject<String> |
WRITER |
static JsonWriter.WriteObject<char[]> |
WRITER_ARRAY |
static JsonWriter.WriteObject<CharSequence> |
WRITER_CHARS |
| Constructor and Description |
|---|
StringConverter() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static final JsonReader.ReadObject<String> READER
public static final JsonWriter.WriteObject<String> WRITER
public static final JsonWriter.WriteObject<CharSequence> WRITER_CHARS
public static final JsonWriter.WriteObject<char[]> WRITER_ARRAY
public static final char[] EMPTY_ARRAY
public static final JsonReader.ReadObject<StringBuilder> READER_BUILDER
public static final JsonReader.ReadObject<StringBuffer> READER_BUFFER
public static final JsonReader.ReadObject<char[]> READER_ARRAY
public static void serializeShortNullable(@Nullable String value, JsonWriter sw)
public static void serializeShort(String value, JsonWriter sw)
public static void serializeNullable(@Nullable String value, JsonWriter sw)
public static void serialize(String value, JsonWriter sw)
public static String deserialize(JsonReader reader) throws IOException
IOException@Nullable public static String deserializeNullable(JsonReader reader) throws IOException
IOExceptionpublic static ArrayList<String> deserializeCollection(JsonReader reader) throws IOException
IOExceptionpublic static void deserializeCollection(JsonReader reader, Collection<String> res) throws IOException
IOExceptionpublic static ArrayList<String> deserializeNullableCollection(JsonReader reader) throws IOException
IOExceptionpublic static void deserializeNullableCollection(JsonReader reader, Collection<String> res) throws IOException
IOExceptionpublic static void serialize(List<String> list, JsonWriter writer)
Copyright © 2023. All rights reserved.