/** * Parse the given JSON representation, as returned by {@link #toString()} into a Schema object. * * @param schemaJson the json representation of the schema * @return the json representation parsed into a schema object * @throws IOException if there was an exception parsing the schema */ public static Schema parseJson(String schemaJson) throws IOException { return SCHEMA_TYPE_ADAPTER.fromJson(schemaJson); }
/** * Parse the given json representation of a schema object contained in a reader into a schema object. * * @param reader the reader for reading the json representation of a schema * @return the parsed schema object * @throws IOException if there was an exception parsing the schema */ public static Schema parseJson(Reader reader) throws IOException { return SCHEMA_TYPE_ADAPTER.fromJson(reader); }
/** * Parse the given json representation of a schema object contained in a reader into a schema object. * * @param reader the reader for reading the json representation of a schema * @return the parsed schema object * @throws IOException if there was an exception parsing the schema */ public static Schema parseJson(Reader reader) throws IOException { return SCHEMA_TYPE_ADAPTER.fromJson(reader); }
/** * Parse the given JSON representation, as returned by {@link #toString()} into a Schema object. * * @param schemaJson the json representation of the schema * @return the json representation parsed into a schema object * @throws IOException if there was an exception parsing the schema */ public static Schema parseJson(String schemaJson) throws IOException { return SCHEMA_TYPE_ADAPTER.fromJson(schemaJson); }