Package com.relationalai
Class Config
- java.lang.Object
-
- com.relationalai.Config
-
public class Config extends Object
-
-
Field Summary
Fields Modifier and Type Field Description Credentials
credentials
static String
DEFAULT_FILENAME
static String
DEFAULT_PROFILE
String
host
String
port
String
region
String
scheme
-
Constructor Summary
Constructors Constructor Description Config()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
load(InputStream input, String profile)
static Config
loadConfig()
static Config
loadConfig(InputStream input)
static Config
loadConfig(InputStream input, String profile)
static Config
loadConfig(String fileName)
static Config
loadConfig(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
-
-