Class Configuration
java.lang.Object
jline.internal.Configuration
Provides access to configuration values.
- Since:
- 2.4
- Author:
- Jason Dillon, Guillaume Nodet
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleangetBoolean(String name) static booleangetBoolean(String name, boolean defaultValue) static StringGet the default encoding.static Stringstatic intgetInteger(String name, int defaultValue) static Stringstatic longstatic Stringstatic Propertiesstatic Stringstatic Stringstatic Filestatic booleanisHpux()static booleanstatic voidreset()
-
Field Details
-
JLINE_CONFIGURATION
System property which can point to a file or URL containing configuration properties to load.- Since:
- 2.7
- See Also:
-
JLINE_RC
Default configuration file name loaded from user's home directory.- See Also:
-
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
reset
public static void reset()- Since:
- 2.7
-
getProperties
- Since:
- 2.7
-
getString
-
getString
-
getBoolean
-
getBoolean
-
getInteger
- Since:
- 2.6
-
getLong
- Since:
- 2.6
-
getLineSeparator
- Since:
- 2.7
-
getUserHome
-
getOsName
-
isWindows
public static boolean isWindows()- Since:
- 2.7
-
isHpux
public static boolean isHpux() -
getFileEncoding
-
getEncoding
Get the default encoding. Will first look at the LC_ALL, LC_CTYPE, and LANG environment variables, then the input.encoding system property, then the default charset according to the JVM.- Returns:
- The default encoding to use when none is specified.
-