public class JsonConfigReader extends Object implements ConfigReader
| Constructor and Description |
|---|
JsonConfigReader() |
| Modifier and Type | Method and Description |
|---|---|
Program |
read(InputStream is)
Read a program from an input stream containing a JSON configuration
|
Program |
read(org.json.JSONObject obj)
Read a program from a JSON object
|
Program |
read(ServiceContainer sc,
org.json.JSONObject obj)
Read a program from a JSON object
|
Program |
read(String[] resNames)
Read a program from a set of named resources containing JSON configurations
|
void |
readInto(ServiceContainer sc,
org.json.JSONObject obj,
Program p) |
Pipeline |
readPipeline(String pipelineName,
org.json.JSONArray rules,
ArrayList<String> pkgs,
ConfigLoadContext clc) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadpublic Program read(String[] resNames) throws ConfigReadException
read in interface ConfigReaderresNames - ConfigReadExceptionpublic Program read(InputStream is) throws ConfigReadException
read in interface ConfigReaderis - ConfigReadExceptionpublic Program read(org.json.JSONObject obj) throws ConfigReadException
obj - ConfigReadExceptionpublic Program read(ServiceContainer sc, org.json.JSONObject obj) throws ConfigReadException
sc - obj - ConfigReadExceptionpublic void readInto(ServiceContainer sc, org.json.JSONObject obj, Program p) throws ConfigReadException
ConfigReadExceptionpublic Pipeline readPipeline(String pipelineName, org.json.JSONArray rules, ArrayList<String> pkgs, ConfigLoadContext clc) throws ConfigReadException
ConfigReadExceptionCopyright © 2021 continual.io. All rights reserved.