public final class PathTypeAdapter
extends com.google.gson.TypeAdapter<java.nio.file.Path>
Gson TypeAdapter capable of Serializing/Deserializing Paths.
Only Paths which are owned by the default file system are supported.
Created by covers1624 on 14/1/21.
| Constructor and Description |
|---|
PathTypeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
@Nullable java.nio.file.Path |
read(com.google.gson.stream.JsonReader in) |
void |
write(com.google.gson.stream.JsonWriter out,
@Nullable java.nio.file.Path value) |
public void write(com.google.gson.stream.JsonWriter out,
@Nullable
@Nullable java.nio.file.Path value)
throws java.io.IOException
write in class com.google.gson.TypeAdapter<java.nio.file.Path>java.io.IOException@Nullable
public @Nullable java.nio.file.Path read(com.google.gson.stream.JsonReader in)
throws java.io.IOException
read in class com.google.gson.TypeAdapter<java.nio.file.Path>java.io.IOException