Package com.massivecraft.mcore.xlib.gson.internal.bind

Examples of com.massivecraft.mcore.xlib.gson.internal.bind.JsonTreeReader


  @SuppressWarnings("unchecked")
  public <T> T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException {
    if (json == null) {
      return null;
    }
    return (T) fromJson(new JsonTreeReader(json), typeOfT);
  }
View Full Code Here


   *
   * @param jsonTree the Java object to convert. May be {@link JsonNull}.
   */
  /*public*/ final T fromJsonTree(JsonElement jsonTree) {
    try {
      JsonReader jsonReader = new JsonTreeReader(jsonTree);
      jsonReader.setLenient(true);
      return read(jsonReader);
    } catch (IOException e) {
      throw new JsonIOException(e);
    }
  }
View Full Code Here

TOP

Related Classes of com.massivecraft.mcore.xlib.gson.internal.bind.JsonTreeReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.