Package qupath.opencv.io
Class OpenCVTypeAdapters.OpenCVTypeAdapter<T>
java.lang.Object
com.google.gson.TypeAdapter<T>
qupath.opencv.io.OpenCVTypeAdapters.OpenCVTypeAdapter<T>
- Type Parameters:
T
-
- Enclosing class:
OpenCVTypeAdapters
TypeAdapter that helps include OpenCV-based objects within a Java object being serialized to JSON.
-
Constructor Summary
-
Method Summary
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
OpenCVTypeAdapter
public OpenCVTypeAdapter()
-
-
Method Details
-
write
- Specified by:
write
in classTypeAdapter<T>
- Throws:
IOException
-
read
- Specified by:
read
in classTypeAdapter<T>
- Throws:
IOException
-