public class Configuration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JLINE_CONFIGURATION
System property which can point to a file or URL containing configuration properties to load.
|
static String |
JLINE_RC
Default configuration file name loaded from user's home directory.
|
Constructor and Description |
---|
Configuration() |
Modifier and Type | Method and Description |
---|---|
static boolean |
getBoolean(String name) |
static boolean |
getBoolean(String name,
boolean defaultValue) |
static String |
getEncoding()
Get the default encoding.
|
static String |
getFileEncoding() |
static int |
getInteger(String name,
int defaultValue) |
static String |
getLineSeparator() |
static long |
getLong(String name,
long defaultValue) |
static String |
getOsName() |
static Properties |
getProperties() |
static String |
getString(String name) |
static String |
getString(String name,
String defaultValue) |
static File |
getUserHome() |
static boolean |
isHpux() |
static boolean |
isWindows() |
static void |
reset() |
public static final String JLINE_CONFIGURATION
public static final String JLINE_RC
public static void reset()
public static Properties getProperties()
public static boolean getBoolean(String name)
public static boolean getBoolean(String name, boolean defaultValue)
public static int getInteger(String name, int defaultValue)
public static long getLong(String name, long defaultValue)
public static String getLineSeparator()
public static File getUserHome()
public static String getOsName()
public static boolean isWindows()
public static boolean isHpux()
public static String getFileEncoding()
public static String getEncoding()
Copyright © 2017. All Rights Reserved.