Package com.puppetlabs.geppetto.catalog.impl

Examples of com.puppetlabs.geppetto.catalog.impl.CatalogImpl$JsonAdapter


   */
  public static Catalog load(File jsonFile) throws IOException {
    Reader reader = new BufferedReader(new FileReader(jsonFile));
    try {
      Gson gson = getGSon();
      CatalogImpl md = gson.fromJson(reader, CatalogImpl.class);
      return md;
    }
    finally {
      StreamUtil.close(reader);
    }
View Full Code Here


   */
  public static Catalog load(InputStream jsonStream) throws IOException {
    Reader reader = new BufferedReader(new InputStreamReader(jsonStream));
    try {
      Gson gson = getGSon();
      CatalogImpl md = gson.fromJson(reader, CatalogImpl.class);
      return md;
    }
    finally {
      StreamUtil.close(reader);
    }
View Full Code Here

   * Loads a Catalog model from a catalog JSON string.
   *
   */
  public static Catalog load(String jsonString) throws IOException {
    Gson gson = getGSon();
    CatalogImpl md = gson.fromJson(jsonString, CatalogImpl.class);
    return md;
  }
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.catalog.impl.CatalogImpl$JsonAdapter

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.