Package com.relationalai
Class Config
- java.lang.Object
-
- com.relationalai.Config
-
public class Config extends Object
-
-
Field Summary
Fields Modifier and Type Field Description Credentialscredentialsstatic StringDEFAULT_FILENAMEstatic StringDEFAULT_PROFILEStringhostStringportStringregionStringscheme
-
Constructor Summary
Constructors Constructor Description Config()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidload(InputStream input, String profile)static ConfigloadConfig()static ConfigloadConfig(InputStream input)static ConfigloadConfig(InputStream input, String profile)static ConfigloadConfig(String fileName)static ConfigloadConfig(String fileName, String profile)
-
-
-
Method Detail
-
load
public void load(InputStream input, String profile) throws IOException
- Throws:
IOException
-
loadConfig
public static Config loadConfig() throws IOException
- Throws:
IOException
-
loadConfig
public static Config loadConfig(InputStream input) throws IOException
- Throws:
IOException
-
loadConfig
public static Config loadConfig(String fileName) throws IOException
- Throws:
IOException
-
loadConfig
public static Config loadConfig(String fileName, String profile) throws IOException
- Throws:
IOException
-
loadConfig
public static Config loadConfig(InputStream input, String profile) throws IOException
- Throws:
IOException
-
-