Package com.dslplatform.json
Class NetConverter
java.lang.Object
com.dslplatform.json.NetConverter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final JsonReader.ReadObject<InetAddress> private static final JsonReader.ReadObject<URI> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InetAddressdeserializeIp(JsonReader reader) static ArrayList<InetAddress> deserializeIpCollection(JsonReader reader) static voiddeserializeIpCollection(JsonReader reader, Collection<InetAddress> res) static ArrayList<InetAddress> static voiddeserializeIpNullableCollection(JsonReader reader, Collection<InetAddress> res) static URIdeserializeUri(JsonReader reader) deserializeUriCollection(JsonReader reader) static voiddeserializeUriCollection(JsonReader reader, Collection<URI> res) static voiddeserializeUriNullableCollection(JsonReader reader, Collection<URI> res) (package private) static <T> voidregisterDefault(DslJson<T> json) static voidserialize(InetAddress value, JsonWriter sw) static voidserialize(URI value, JsonWriter sw) static voidserializeNullable(InetAddress value, JsonWriter sw) static voidserializeNullable(URI value, JsonWriter sw)
-
Field Details
-
URI_READER
-
ADDRESS_READER
-
-
Constructor Details
-
NetConverter
public NetConverter()
-
-
Method Details
-
registerDefault
-
serializeNullable
-
serialize
-
deserializeUri
- Throws:
IOException
-
deserializeUriCollection
- Throws:
IOException
-
deserializeUriCollection
public static void deserializeUriCollection(JsonReader reader, Collection<URI> res) throws IOException - Throws:
IOException
-
deserializeUriNullableCollection
- Throws:
IOException
-
deserializeUriNullableCollection
public static void deserializeUriNullableCollection(JsonReader reader, Collection<URI> res) throws IOException - Throws:
IOException
-
serializeNullable
-
serialize
-
deserializeIp
- Throws:
IOException
-
deserializeIpCollection
- Throws:
IOException
-
deserializeIpCollection
public static void deserializeIpCollection(JsonReader reader, Collection<InetAddress> res) throws IOException - Throws:
IOException
-
deserializeIpNullableCollection
public static ArrayList<InetAddress> deserializeIpNullableCollection(JsonReader reader) throws IOException - Throws:
IOException
-
deserializeIpNullableCollection
public static void deserializeIpNullableCollection(JsonReader reader, Collection<InetAddress> res) throws IOException - Throws:
IOException
-