com.github.fge.jsonschema.examples
Class Utils

java.lang.Object
  extended by com.github.fge.jsonschema.examples.Utils

public final class Utils
extends Object

Utility class for examples


Method Summary
static JsonNode loadResource(String name)
          Load one resource from the current package as a JsonNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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