Class PathAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<Path>
-
- cn.boboweike.carrot.utils.mapper.gson.PathAdapter
-
public final class PathAdapter extends com.google.gson.TypeAdapter<Path>
-
-
Constructor Summary
Constructors Constructor Description PathAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pathread(com.google.gson.stream.JsonReader jsonReader)voidwrite(com.google.gson.stream.JsonWriter jsonWriter, Path path)
-
-
-
Method Detail
-
write
public void write(com.google.gson.stream.JsonWriter jsonWriter, Path path) throws IOException- Specified by:
writein classcom.google.gson.TypeAdapter<Path>- Throws:
IOException
-
read
public Path read(com.google.gson.stream.JsonReader jsonReader) throws IOException
- Specified by:
readin classcom.google.gson.TypeAdapter<Path>- Throws:
IOException
-
-