com.github.fge.jsonschema.examples
Class Utils
java.lang.Object
com.github.fge.jsonschema.examples.Utils
public final class Utils
- extends Object
Utility class for examples
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
loadResource
public static JsonNode loadResource(String name)
throws IOException
- Load one resource from the current package as a
JsonNode
- Parameters:
name
- name of the resource (MUST start with /
- Returns:
- a JSON document
- Throws:
IOException
- resource not found