public class SourceFileJsonTypeAdapter
extends com.google.gson.TypeAdapter<com.android.ide.common.blame.SourceFile>
SourceFile
.
The JsonDeserialiser accepts either a string of the file path or a json object of the form
{ "path":"/path/to/file.java", "description": "short human-readable description" }where both properties are optionally present, so unknown is represented by the empty object.
Constructor and Description |
---|
SourceFileJsonTypeAdapter() |
Modifier and Type | Method and Description |
---|---|
com.android.ide.common.blame.SourceFile |
read(com.google.gson.stream.JsonReader in) |
void |
write(com.google.gson.stream.JsonWriter out,
com.android.ide.common.blame.SourceFile src) |
public void write(com.google.gson.stream.JsonWriter out, com.android.ide.common.blame.SourceFile src) throws java.io.IOException
write
in class com.google.gson.TypeAdapter<com.android.ide.common.blame.SourceFile>
java.io.IOException
public com.android.ide.common.blame.SourceFile read(com.google.gson.stream.JsonReader in) throws java.io.IOException
read
in class com.google.gson.TypeAdapter<com.android.ide.common.blame.SourceFile>
java.io.IOException