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 resName)
Read a program from a named resource containing a JSON configuration
|
Pipeline |
readPipeline(String pipelineName,
org.json.JSONArray rules,
ArrayList<String> pkgs,
ServiceContainer sc) |
public Program read(String resName) throws ConfigReadException
read in interface ConfigReaderresName - 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 Pipeline readPipeline(String pipelineName, org.json.JSONArray rules, ArrayList<String> pkgs, ServiceContainer sc) throws ConfigReadException
ConfigReadExceptionCopyright © 2020 continual.io. All rights reserved.