Package com.dslplatform.json
Class JavaGeomConverter
- java.lang.Object
-
- com.dslplatform.json.JavaGeomConverter
-
public abstract class JavaGeomConverter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static JsonReader.ReadObject<java.awt.image.BufferedImage>IMAGE_READERprivate static JsonReader.ReadObject<java.awt.geom.Point2D.Double>LOCATION_READERprivate static JsonReader.ReadObject<java.awt.Point>POINT_READERprivate static JsonReader.ReadObject<java.awt.geom.Rectangle2D.Double>RECTANGLE_READER
-
Constructor Summary
Constructors Constructor Description JavaGeomConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.awt.image.BufferedImagedeserializeImage(JsonReader reader)static java.util.ArrayList<java.awt.image.BufferedImage>deserializeImageCollection(JsonReader reader)static voiddeserializeImageCollection(JsonReader reader, java.util.Collection<java.awt.image.BufferedImage> res)static java.util.ArrayList<java.awt.image.BufferedImage>deserializeImageNullableCollection(JsonReader reader)static voiddeserializeImageNullableCollection(JsonReader reader, java.util.Collection<java.awt.image.BufferedImage> res)static java.awt.geom.Point2D.DoubledeserializeLocation(JsonReader reader)static java.util.ArrayList<java.awt.geom.Point2D>deserializeLocationCollection(JsonReader reader)static voiddeserializeLocationCollection(JsonReader reader, java.util.Collection<java.awt.geom.Point2D> res)static java.util.ArrayList<java.awt.geom.Point2D>deserializeLocationNullableCollection(JsonReader reader)static voiddeserializeLocationNullableCollection(JsonReader reader, java.util.Collection<java.awt.geom.Point2D> res)static java.awt.PointdeserializePoint(JsonReader reader)static java.util.ArrayList<java.awt.Point>deserializePointCollection(JsonReader reader)static voiddeserializePointCollection(JsonReader reader, java.util.Collection<java.awt.Point> res)static java.util.ArrayList<java.awt.Point>deserializePointNullableCollection(JsonReader reader)static voiddeserializePointNullableCollection(JsonReader reader, java.util.Collection<java.awt.Point> res)static java.awt.geom.Rectangle2D.DoubledeserializeRectangle(JsonReader reader)static java.util.ArrayList<java.awt.geom.Rectangle2D>deserializeRectangleCollection(JsonReader reader)static voiddeserializeRectangleCollection(JsonReader reader, java.util.Collection<java.awt.geom.Rectangle2D> res)static java.util.ArrayList<java.awt.geom.Rectangle2D>deserializeRectangleNullableCollection(JsonReader reader)static voiddeserializeRectangleNullableCollection(JsonReader reader, java.util.Collection<java.awt.geom.Rectangle2D> res)(package private) static <T> voidregisterDefault(DslJson<T> json)static voidserialize(java.awt.Image value, JsonWriter sw)static voidserializeLocation(java.awt.geom.Point2D value, JsonWriter sw)static voidserializeLocationNullable(java.awt.geom.Point2D value, JsonWriter sw)static voidserializePoint(java.awt.Point value, JsonWriter sw)static voidserializePointNullable(java.awt.Point value, JsonWriter sw)static voidserializeRectangle(java.awt.geom.Rectangle2D value, JsonWriter sw)static voidserializeRectangleNullable(java.awt.geom.Rectangle2D value, JsonWriter sw)
-
-
-
Field Detail
-
LOCATION_READER
private static final JsonReader.ReadObject<java.awt.geom.Point2D.Double> LOCATION_READER
-
POINT_READER
private static final JsonReader.ReadObject<java.awt.Point> POINT_READER
-
RECTANGLE_READER
private static final JsonReader.ReadObject<java.awt.geom.Rectangle2D.Double> RECTANGLE_READER
-
IMAGE_READER
private static final JsonReader.ReadObject<java.awt.image.BufferedImage> IMAGE_READER
-
-
Method Detail
-
registerDefault
static <T> void registerDefault(DslJson<T> json)
-
serializeLocationNullable
public static void serializeLocationNullable(@Nullable java.awt.geom.Point2D value, JsonWriter sw)
-
serializeLocation
public static void serializeLocation(java.awt.geom.Point2D value, JsonWriter sw)
-
deserializeLocation
public static java.awt.geom.Point2D.Double deserializeLocation(JsonReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializeLocationCollection
public static java.util.ArrayList<java.awt.geom.Point2D> deserializeLocationCollection(JsonReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializeLocationCollection
public static void deserializeLocationCollection(JsonReader reader, java.util.Collection<java.awt.geom.Point2D> res) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializeLocationNullableCollection
public static java.util.ArrayList<java.awt.geom.Point2D> deserializeLocationNullableCollection(JsonReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializeLocationNullableCollection
public static void deserializeLocationNullableCollection(JsonReader reader, java.util.Collection<java.awt.geom.Point2D> res) throws java.io.IOException
- Throws:
java.io.IOException
-
serializePointNullable
public static void serializePointNullable(@Nullable java.awt.Point value, JsonWriter sw)
-
serializePoint
public static void serializePoint(java.awt.Point value, JsonWriter sw)
-
deserializePoint
public static java.awt.Point deserializePoint(JsonReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializePointCollection
public static java.util.ArrayList<java.awt.Point> deserializePointCollection(JsonReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializePointCollection
public static void deserializePointCollection(JsonReader reader, java.util.Collection<java.awt.Point> res) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializePointNullableCollection
public static java.util.ArrayList<java.awt.Point> deserializePointNullableCollection(JsonReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializePointNullableCollection
public static void deserializePointNullableCollection(JsonReader reader, java.util.Collection<java.awt.Point> res) throws java.io.IOException
- Throws:
java.io.IOException
-
serializeRectangleNullable
public static void serializeRectangleNullable(@Nullable java.awt.geom.Rectangle2D value, JsonWriter sw)
-
serializeRectangle
public static void serializeRectangle(java.awt.geom.Rectangle2D value, JsonWriter sw)
-
deserializeRectangle
public static java.awt.geom.Rectangle2D.Double deserializeRectangle(JsonReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializeRectangleCollection
public static java.util.ArrayList<java.awt.geom.Rectangle2D> deserializeRectangleCollection(JsonReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializeRectangleCollection
public static void deserializeRectangleCollection(JsonReader reader, java.util.Collection<java.awt.geom.Rectangle2D> res) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializeRectangleNullableCollection
public static java.util.ArrayList<java.awt.geom.Rectangle2D> deserializeRectangleNullableCollection(JsonReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializeRectangleNullableCollection
public static void deserializeRectangleNullableCollection(JsonReader reader, java.util.Collection<java.awt.geom.Rectangle2D> res) throws java.io.IOException
- Throws:
java.io.IOException
-
serialize
public static void serialize(@Nullable java.awt.Image value, JsonWriter sw)
-
deserializeImage
public static java.awt.image.BufferedImage deserializeImage(JsonReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializeImageCollection
public static java.util.ArrayList<java.awt.image.BufferedImage> deserializeImageCollection(JsonReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializeImageCollection
public static void deserializeImageCollection(JsonReader reader, java.util.Collection<java.awt.image.BufferedImage> res) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializeImageNullableCollection
public static java.util.ArrayList<java.awt.image.BufferedImage> deserializeImageNullableCollection(JsonReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializeImageNullableCollection
public static void deserializeImageNullableCollection(JsonReader reader, java.util.Collection<java.awt.image.BufferedImage> res) throws java.io.IOException
- Throws:
java.io.IOException
-
-