public class

Configuration

extends Object
java.lang.Object
   ↳ jline.internal.Configuration

Class Overview

Provides access to configuration values.

Summary

Constants
String JLINE_CONFIGURATION System property which can point to a file or URL containing configuration properties to load.
String JLINE_RC Default configuration file name loaded from user's home directory.
Public Constructors
Configuration()
Public Methods
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 isWindows()
static void reset()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String JLINE_CONFIGURATION

System property which can point to a file or URL containing configuration properties to load.

Constant Value: "jline.configuration"

public static final String JLINE_RC

Default configuration file name loaded from user's home directory.

Constant Value: ".jline.rc"

Public Constructors

public Configuration ()

Public Methods

public static boolean getBoolean (String name, boolean defaultValue)

public static String getEncoding ()

Get the default encoding. Will first look at the LC_CTYPE environment variable, then the input.encoding system property, then the default charset according to the JVM.

Returns
  • The default encoding to use when none is specified.

public static String getFileEncoding ()

public static int getInteger (String name, int defaultValue)

public static String getLineSeparator ()

public static long getLong (String name, long defaultValue)

public static String getOsName ()

public static Properties getProperties ()

public static String getString (String name)

public static String getString (String name, String defaultValue)

public static File getUserHome ()

public static boolean isWindows ()

public static void reset ()