public class PathAttributeSerializer<T extends KomodoPathAttribute>
extends com.google.gson.TypeAdapter<T>
Constructor and Description |
---|
PathAttributeSerializer() |
Modifier and Type | Method and Description |
---|---|
protected T |
createEntity() |
T |
read(com.google.gson.stream.JsonReader in) |
protected String |
readPath(com.google.gson.stream.JsonReader in,
String name,
T pathAttr) |
void |
write(com.google.gson.stream.JsonWriter out,
T value) |
protected void |
writePath(com.google.gson.stream.JsonWriter out,
T value) |
protected T createEntity()
protected String readPath(com.google.gson.stream.JsonReader in, String name, T pathAttr) throws IOException
IOException
public T read(com.google.gson.stream.JsonReader in) throws IOException
read
in class com.google.gson.TypeAdapter<T extends KomodoPathAttribute>
IOException
TypeAdapter.read(com.google.gson.stream.JsonReader)
protected void writePath(com.google.gson.stream.JsonWriter out, T value) throws IOException
IOException
public void write(com.google.gson.stream.JsonWriter out, T value) throws IOException
write
in class com.google.gson.TypeAdapter<T extends KomodoPathAttribute>
IOException
TypeAdapter.write(com.google.gson.stream.JsonWriter, java.lang.Object)
Copyright © 2013–2019. All rights reserved.