Package com.dslplatform.json
Class JavaGeomConverter
java.lang.Object
com.dslplatform.json.JavaGeomConverter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final JsonReader.ReadObject<BufferedImage> private static final JsonReader.ReadObject<Point2D.Double> private static final JsonReader.ReadObject<Point> private static final JsonReader.ReadObject<Rectangle2D.Double> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImagedeserializeImage(JsonReader reader) static ArrayList<BufferedImage> deserializeImageCollection(JsonReader reader) static voiddeserializeImageCollection(JsonReader reader, Collection<BufferedImage> res) static ArrayList<BufferedImage> static voiddeserializeImageNullableCollection(JsonReader reader, Collection<BufferedImage> res) static Point2D.DoubledeserializeLocation(JsonReader reader) static voiddeserializeLocationCollection(JsonReader reader, Collection<Point2D> res) static voiddeserializeLocationNullableCollection(JsonReader reader, Collection<Point2D> res) static PointdeserializePoint(JsonReader reader) deserializePointCollection(JsonReader reader) static voiddeserializePointCollection(JsonReader reader, Collection<Point> res) static voiddeserializePointNullableCollection(JsonReader reader, Collection<Point> res) static Rectangle2D.DoubledeserializeRectangle(JsonReader reader) static ArrayList<Rectangle2D> static voiddeserializeRectangleCollection(JsonReader reader, Collection<Rectangle2D> res) static ArrayList<Rectangle2D> static void(package private) static <T> voidregisterDefault(DslJson<T> json) static voidserialize(Image value, JsonWriter sw) static voidserializeLocation(Point2D value, JsonWriter sw) static voidserializeLocationNullable(Point2D value, JsonWriter sw) static voidserializePoint(Point value, JsonWriter sw) static voidserializePointNullable(Point value, JsonWriter sw) static voidserializeRectangle(Rectangle2D value, JsonWriter sw) static voidserializeRectangleNullable(Rectangle2D value, JsonWriter sw)
-
Field Details
-
LOCATION_READER
-
POINT_READER
-
RECTANGLE_READER
-
IMAGE_READER
-
-
Constructor Details
-
JavaGeomConverter
public JavaGeomConverter()
-
-
Method Details
-
registerDefault
-
serializeLocationNullable
-
serializeLocation
-
deserializeLocation
- Throws:
IOException
-
deserializeLocationCollection
public static ArrayList<Point2D> deserializeLocationCollection(JsonReader reader) throws IOException - Throws:
IOException
-
deserializeLocationCollection
public static void deserializeLocationCollection(JsonReader reader, Collection<Point2D> res) throws IOException - Throws:
IOException
-
deserializeLocationNullableCollection
public static ArrayList<Point2D> deserializeLocationNullableCollection(JsonReader reader) throws IOException - Throws:
IOException
-
deserializeLocationNullableCollection
public static void deserializeLocationNullableCollection(JsonReader reader, Collection<Point2D> res) throws IOException - Throws:
IOException
-
serializePointNullable
-
serializePoint
-
deserializePoint
- Throws:
IOException
-
deserializePointCollection
- Throws:
IOException
-
deserializePointCollection
public static void deserializePointCollection(JsonReader reader, Collection<Point> res) throws IOException - Throws:
IOException
-
deserializePointNullableCollection
public static ArrayList<Point> deserializePointNullableCollection(JsonReader reader) throws IOException - Throws:
IOException
-
deserializePointNullableCollection
public static void deserializePointNullableCollection(JsonReader reader, Collection<Point> res) throws IOException - Throws:
IOException
-
serializeRectangleNullable
-
serializeRectangle
-
deserializeRectangle
- Throws:
IOException
-
deserializeRectangleCollection
public static ArrayList<Rectangle2D> deserializeRectangleCollection(JsonReader reader) throws IOException - Throws:
IOException
-
deserializeRectangleCollection
public static void deserializeRectangleCollection(JsonReader reader, Collection<Rectangle2D> res) throws IOException - Throws:
IOException
-
deserializeRectangleNullableCollection
public static ArrayList<Rectangle2D> deserializeRectangleNullableCollection(JsonReader reader) throws IOException - Throws:
IOException
-
deserializeRectangleNullableCollection
public static void deserializeRectangleNullableCollection(JsonReader reader, Collection<Rectangle2D> res) throws IOException - Throws:
IOException
-
serialize
-
deserializeImage
- Throws:
IOException
-
deserializeImageCollection
public static ArrayList<BufferedImage> deserializeImageCollection(JsonReader reader) throws IOException - Throws:
IOException
-
deserializeImageCollection
public static void deserializeImageCollection(JsonReader reader, Collection<BufferedImage> res) throws IOException - Throws:
IOException
-
deserializeImageNullableCollection
public static ArrayList<BufferedImage> deserializeImageNullableCollection(JsonReader reader) throws IOException - Throws:
IOException
-
deserializeImageNullableCollection
public static void deserializeImageNullableCollection(JsonReader reader, Collection<BufferedImage> res) throws IOException - Throws:
IOException
-