public abstract class AbstractContentSerializer<T extends AbstractKomodoContentAttribute>
extends com.google.gson.TypeAdapter<T>
Constructor and Description |
---|
AbstractContentSerializer() |
Modifier and Type | Method and Description |
---|---|
abstract T |
read(com.google.gson.stream.JsonReader in) |
protected String |
readContent(com.google.gson.stream.JsonReader in,
AbstractKomodoContentAttribute contentAttr,
String name) |
abstract void |
write(com.google.gson.stream.JsonWriter out,
T value) |
protected void |
writeContent(com.google.gson.stream.JsonWriter out,
AbstractKomodoContentAttribute value) |
protected String readContent(com.google.gson.stream.JsonReader in, AbstractKomodoContentAttribute contentAttr, String name) throws IOException
IOException
public abstract T read(com.google.gson.stream.JsonReader in) throws IOException
read
in class com.google.gson.TypeAdapter<T extends AbstractKomodoContentAttribute>
IOException
TypeAdapter.read(com.google.gson.stream.JsonReader)
protected void writeContent(com.google.gson.stream.JsonWriter out, AbstractKomodoContentAttribute value) throws IOException
IOException
public abstract void write(com.google.gson.stream.JsonWriter out, T value) throws IOException
write
in class com.google.gson.TypeAdapter<T extends AbstractKomodoContentAttribute>
IOException
TypeAdapter.write(com.google.gson.stream.JsonWriter, java.lang.Object)
Copyright © 2013–2019. All rights reserved.