< prev index next >

jdk/src/jdk.jline/share/classes/jdk/internal/jline/internal/Configuration.java

Print this page


   1 /*
   2  * Copyright (c) 2002-2012, the original author or authors.
   3  *
   4  * This software is distributable under the BSD license. See the terms of the
   5  * BSD license in the documentation provided with this software.
   6  *
   7  * http://www.opensource.org/licenses/bsd-license.php
   8  */
   9 package jline.internal;
  10 
  11 import java.io.BufferedInputStream;
  12 import java.io.File;
  13 import java.io.IOException;
  14 import java.io.InputStream;
  15 import java.net.URL;
  16 import java.nio.charset.Charset;
  17 import java.util.Map;
  18 import java.util.Properties;
  19 
  20 import static jline.internal.Preconditions.checkNotNull;
  21 
  22 /**
  23  * Provides access to configuration values.
  24  *
  25  * @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
  26  * @author <a href="mailto:gnodet@gmail.com">Guillaume Nodet</a>
  27  * @since 2.4
  28  */
  29 public class Configuration
  30 {
  31     /**
  32      * System property which can point to a file or URL containing configuration properties to load.
  33      *
  34      * @since 2.7
  35      */
  36     public static final String JLINE_CONFIGURATION = "jline.configuration";
  37 
  38     /**
  39      * Default configuration file name loaded from user's home directory.
  40      */


   1 /*
   2  * Copyright (c) 2002-2012, the original author or authors.
   3  *
   4  * This software is distributable under the BSD license. See the terms of the
   5  * BSD license in the documentation provided with this software.
   6  *
   7  * http://www.opensource.org/licenses/bsd-license.php
   8  */
   9 package jdk.internal.jline.internal;
  10 
  11 import java.io.BufferedInputStream;
  12 import java.io.File;
  13 import java.io.IOException;
  14 import java.io.InputStream;
  15 import java.net.URL;
  16 import java.nio.charset.Charset;
  17 import java.util.Map;
  18 import java.util.Properties;
  19 
  20 import static jdk.internal.jline.internal.Preconditions.checkNotNull;
  21 
  22 /**
  23  * Provides access to configuration values.
  24  *
  25  * @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
  26  * @author <a href="mailto:gnodet@gmail.com">Guillaume Nodet</a>
  27  * @since 2.4
  28  */
  29 public class Configuration
  30 {
  31     /**
  32      * System property which can point to a file or URL containing configuration properties to load.
  33      *
  34      * @since 2.7
  35      */
  36     public static final String JLINE_CONFIGURATION = "jline.configuration";
  37 
  38     /**
  39      * Default configuration file name loaded from user's home directory.
  40      */


< prev index next >