public class GsonStructure extends Object implements JsonLikeStructure
| Constructor and Description |
|---|
GsonStructure() |
GsonStructure(com.google.gson.JsonArray json) |
GsonStructure(com.google.gson.JsonObject json) |
| Modifier and Type | Method and Description |
|---|---|
JsonLikeStructure |
getInstance() |
JsonLikeWriter |
getJsonLikeWriter() |
JsonLikeWriter |
getJsonLikeWriter(Writer writer) |
JsonLikeArray |
getRootArray() |
JsonLikeObject |
getRootObject() |
void |
load(Reader theReader)
Parse the JSON document into the Json-like structure
so that it can be navigated.
|
void |
load(Reader theReader,
boolean allowArray) |
void |
setNativeArray(com.google.gson.JsonArray json) |
void |
setNativeObject(com.google.gson.JsonObject json) |
public GsonStructure()
public GsonStructure(com.google.gson.JsonObject json)
public GsonStructure(com.google.gson.JsonArray json)
public void setNativeObject(com.google.gson.JsonObject json)
public void setNativeArray(com.google.gson.JsonArray json)
public JsonLikeStructure getInstance()
getInstance in interface JsonLikeStructurepublic void load(Reader theReader) throws DataFormatException
JsonLikeStructureload in interface JsonLikeStructuretheReader - a Reader that will
process the JSON input streamDataFormatException - when invalid JSON is receivedpublic void load(Reader theReader, boolean allowArray) throws DataFormatException
load in interface JsonLikeStructureDataFormatExceptionpublic JsonLikeWriter getJsonLikeWriter(Writer writer)
getJsonLikeWriter in interface JsonLikeStructurepublic JsonLikeWriter getJsonLikeWriter()
getJsonLikeWriter in interface JsonLikeStructurepublic JsonLikeObject getRootObject() throws DataFormatException
getRootObject in interface JsonLikeStructureDataFormatExceptionpublic JsonLikeArray getRootArray() throws DataFormatException
getRootArray in interface JsonLikeStructureDataFormatExceptionCopyright © 2014–2017 University Health Network. All rights reserved.