/** * Creates JSON Configuration object from the provided config file * * @param jsonFile : The file containing JSON * @throws IOException if there was an error during creation */ public JsonSimpleConfig(File jsonFile) throws IOException { super(jsonFile); systemConfig = new JsonSimple(JsonSimpleConfig.getSystemFile()); loadIncludeDir(); }
/** * Creates JSON Configuration object from the provided config string * * @param jsonString : The JSON in string form * @throws IOException if there was an error during creation */ public JsonSimpleConfig(String jsonString) throws IOException { super(jsonString); systemConfig = new JsonSimple(JsonSimpleConfig.getSystemFile()); loadIncludeDir(); }
/** * Creates JSON Configuration object from the provided input stream * * @param jsonIn : The input stream to read * @throws IOException if there was an error during creation */ public JsonSimpleConfig(InputStream jsonIn) throws IOException { super(jsonIn); systemConfig = new JsonSimple(JsonSimpleConfig.getSystemFile()); loadIncludeDir(); }
/** * Creates JSON Configuration object from the system config file * * @throws IOException if there was an error during creation */ public JsonSimpleConfig() throws IOException { super(JsonSimpleConfig.getSystemFile()); systemConfig = new JsonSimple(JsonSimpleConfig.getSystemFile()); loadIncludeDir(); }