public class TAKServerSerializer extends java.lang.Object implements JSONPreferenceSerializer
Constructor and Description |
---|
TAKServerSerializer() |
TAKServerSerializer(java.util.List<TAKServer> servers) |
Modifier and Type | Method and Description |
---|---|
boolean |
readJSON(org.json.JSONObject root)
Read content from JSON root element
|
boolean |
writeJSON(org.json.JSONObject root)
Serialize content to JSON in a given root element
|
public TAKServerSerializer(java.util.List<TAKServer> servers)
public TAKServerSerializer()
public boolean writeJSON(org.json.JSONObject root)
JSONPreferenceSerializer
writeJSON
in interface JSONPreferenceSerializer
root
- Root element (where the preference output is added)public boolean readJSON(org.json.JSONObject root)
JSONPreferenceSerializer
readJSON
in interface JSONPreferenceSerializer
root
- Root element (where the preference input is read)