org.ini4j
Class Config

Object
  extended by org.ini4j.Config
All Implemented Interfaces:
Serializable, Cloneable

public class Config
extends Object
implements Cloneable, Serializable

See Also:
Serialized Form

Field Summary
static boolean DEFAULT_COMMENT
           
static boolean DEFAULT_EMPTY_OPTION
           
static boolean DEFAULT_EMPTY_SECTION
           
static boolean DEFAULT_ESCAPE
           
static boolean DEFAULT_ESCAPE_NEWLINE
           
static Charset DEFAULT_FILE_ENCODING
           
static boolean DEFAULT_GLOBAL_SECTION
           
static String DEFAULT_GLOBAL_SECTION_NAME
           
static boolean DEFAULT_HEADER_COMMENT
           
static boolean DEFAULT_INCLUDE
           
static String DEFAULT_LINE_SEPARATOR
           
static boolean DEFAULT_LOWER_CASE_OPTION
           
static boolean DEFAULT_LOWER_CASE_SECTION
           
static boolean DEFAULT_MULTI_OPTION
           
static boolean DEFAULT_MULTI_SECTION
           
static char DEFAULT_PATH_SEPARATOR
           
static boolean DEFAULT_PROPERTY_FIRST_UPPER
           
static boolean DEFAULT_STRICT_OPERATOR
           
static boolean DEFAULT_TREE
           
static boolean DEFAULT_UNNAMED_SECTION
           
static String KEY_PREFIX
           
static String PROP_COMMENT
           
static String PROP_EMPTY_OPTION
           
static String PROP_EMPTY_SECTION
           
static String PROP_ESCAPE
           
static String PROP_ESCAPE_NEWLINE
           
static String PROP_FILE_ENCODING
           
static String PROP_GLOBAL_SECTION
           
static String PROP_GLOBAL_SECTION_NAME
           
static String PROP_HEADER_COMMENT
           
static String PROP_INCLUDE
           
static String PROP_LINE_SEPARATOR
           
static String PROP_LOWER_CASE_OPTION
           
static String PROP_LOWER_CASE_SECTION
           
static String PROP_MULTI_OPTION
           
static String PROP_MULTI_SECTION
           
static String PROP_PATH_SEPARATOR
           
static String PROP_PROPERTY_FIRST_UPPER
           
static String PROP_STRICT_OPERATOR
           
static String PROP_TREE
           
static String PROP_UNNAMED_SECTION
           
 
Constructor Summary
Config()
           
 
Method Summary
 Config clone()
           
static String getEnvironment(String name)
           
static String getEnvironment(String name, String defaultValue)
           
 Charset getFileEncoding()
           
static Config getGlobal()
           
 String getGlobalSectionName()
           
 String getLineSeparator()
           
 char getPathSeparator()
           
static String getSystemProperty(String name)
           
static String getSystemProperty(String name, String defaultValue)
           
 boolean isComment()
           
 boolean isEmptyOption()
           
 boolean isEmptySection()
           
 boolean isEscape()
           
 boolean isEscapeNewline()
           
 boolean isGlobalSection()
           
 boolean isHeaderComment()
           
 boolean isInclude()
           
 boolean isLowerCaseOption()
           
 boolean isLowerCaseSection()
           
 boolean isMultiOption()
           
 boolean isMultiSection()
           
 boolean isPropertyFirstUpper()
           
 boolean isStrictOperator()
           
 boolean isTree()
           
 boolean isUnnamedSection()
           
 void reset()
           
 void setComment(boolean value)
           
 void setEmptyOption(boolean value)
           
 void setEmptySection(boolean value)
           
 void setEscape(boolean value)
           
 void setEscapeNewline(boolean value)
           
 void setFileEncoding(Charset value)
           
 void setGlobalSection(boolean value)
           
 void setGlobalSectionName(String value)
           
 void setHeaderComment(boolean value)
           
 void setInclude(boolean value)
           
 void setLineSeparator(String value)
           
 void setLowerCaseOption(boolean value)
           
 void setLowerCaseSection(boolean value)
           
 void setMultiOption(boolean value)
           
 void setMultiSection(boolean value)
           
 void setPathSeparator(char value)
           
 void setPropertyFirstUpper(boolean value)
           
 void setStrictOperator(boolean value)
           
 void setTree(boolean value)
           
 void setUnnamedSection(boolean value)
           
 
Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_PREFIX

public static final String KEY_PREFIX
See Also:
Constant Field Values

PROP_EMPTY_OPTION

public static final String PROP_EMPTY_OPTION
See Also:
Constant Field Values

PROP_EMPTY_SECTION

public static final String PROP_EMPTY_SECTION
See Also:
Constant Field Values

PROP_GLOBAL_SECTION

public static final String PROP_GLOBAL_SECTION
See Also:
Constant Field Values

PROP_GLOBAL_SECTION_NAME

public static final String PROP_GLOBAL_SECTION_NAME
See Also:
Constant Field Values

PROP_INCLUDE

public static final String PROP_INCLUDE
See Also:
Constant Field Values

PROP_LOWER_CASE_OPTION

public static final String PROP_LOWER_CASE_OPTION
See Also:
Constant Field Values

PROP_LOWER_CASE_SECTION

public static final String PROP_LOWER_CASE_SECTION
See Also:
Constant Field Values

PROP_MULTI_OPTION

public static final String PROP_MULTI_OPTION
See Also:
Constant Field Values

PROP_MULTI_SECTION

public static final String PROP_MULTI_SECTION
See Also:
Constant Field Values

PROP_STRICT_OPERATOR

public static final String PROP_STRICT_OPERATOR
See Also:
Constant Field Values

PROP_UNNAMED_SECTION

public static final String PROP_UNNAMED_SECTION
See Also:
Constant Field Values

PROP_ESCAPE

public static final String PROP_ESCAPE
See Also:
Constant Field Values

PROP_ESCAPE_NEWLINE

public static final String PROP_ESCAPE_NEWLINE
See Also:
Constant Field Values

PROP_PATH_SEPARATOR

public static final String PROP_PATH_SEPARATOR
See Also:
Constant Field Values

PROP_TREE

public static final String PROP_TREE
See Also:
Constant Field Values

PROP_PROPERTY_FIRST_UPPER

public static final String PROP_PROPERTY_FIRST_UPPER
See Also:
Constant Field Values

PROP_FILE_ENCODING

public static final String PROP_FILE_ENCODING
See Also:
Constant Field Values

PROP_LINE_SEPARATOR

public static final String PROP_LINE_SEPARATOR
See Also:
Constant Field Values

PROP_COMMENT

public static final String PROP_COMMENT
See Also:
Constant Field Values

PROP_HEADER_COMMENT

public static final String PROP_HEADER_COMMENT
See Also:
Constant Field Values

DEFAULT_EMPTY_OPTION

public static final boolean DEFAULT_EMPTY_OPTION
See Also:
Constant Field Values

DEFAULT_EMPTY_SECTION

public static final boolean DEFAULT_EMPTY_SECTION
See Also:
Constant Field Values

DEFAULT_GLOBAL_SECTION

public static final boolean DEFAULT_GLOBAL_SECTION
See Also:
Constant Field Values

DEFAULT_GLOBAL_SECTION_NAME

public static final String DEFAULT_GLOBAL_SECTION_NAME
See Also:
Constant Field Values

DEFAULT_INCLUDE

public static final boolean DEFAULT_INCLUDE
See Also:
Constant Field Values

DEFAULT_LOWER_CASE_OPTION

public static final boolean DEFAULT_LOWER_CASE_OPTION
See Also:
Constant Field Values

DEFAULT_LOWER_CASE_SECTION

public static final boolean DEFAULT_LOWER_CASE_SECTION
See Also:
Constant Field Values

DEFAULT_MULTI_OPTION

public static final boolean DEFAULT_MULTI_OPTION
See Also:
Constant Field Values

DEFAULT_MULTI_SECTION

public static final boolean DEFAULT_MULTI_SECTION
See Also:
Constant Field Values

DEFAULT_STRICT_OPERATOR

public static final boolean DEFAULT_STRICT_OPERATOR
See Also:
Constant Field Values

DEFAULT_UNNAMED_SECTION

public static final boolean DEFAULT_UNNAMED_SECTION
See Also:
Constant Field Values

DEFAULT_ESCAPE

public static final boolean DEFAULT_ESCAPE
See Also:
Constant Field Values

DEFAULT_ESCAPE_NEWLINE

public static final boolean DEFAULT_ESCAPE_NEWLINE
See Also:
Constant Field Values

DEFAULT_TREE

public static final boolean DEFAULT_TREE
See Also:
Constant Field Values

DEFAULT_PROPERTY_FIRST_UPPER

public static final boolean DEFAULT_PROPERTY_FIRST_UPPER
See Also:
Constant Field Values

DEFAULT_COMMENT

public static final boolean DEFAULT_COMMENT
See Also:
Constant Field Values

DEFAULT_HEADER_COMMENT

public static final boolean DEFAULT_HEADER_COMMENT
See Also:
Constant Field Values

DEFAULT_PATH_SEPARATOR

public static final char DEFAULT_PATH_SEPARATOR
See Also:
Constant Field Values

DEFAULT_LINE_SEPARATOR

public static final String DEFAULT_LINE_SEPARATOR

DEFAULT_FILE_ENCODING

public static final Charset DEFAULT_FILE_ENCODING
Constructor Detail

Config

public Config()
Method Detail

getEnvironment

public static String getEnvironment(String name)

getEnvironment

public static String getEnvironment(String name,
                                    String defaultValue)

getGlobal

public static Config getGlobal()

getSystemProperty

public static String getSystemProperty(String name)

getSystemProperty

public static String getSystemProperty(String name,
                                       String defaultValue)

setComment

public void setComment(boolean value)

isEscape

public boolean isEscape()

isEscapeNewline

public boolean isEscapeNewline()

isInclude

public boolean isInclude()

isTree

public boolean isTree()

setEmptyOption

public void setEmptyOption(boolean value)

setEmptySection

public void setEmptySection(boolean value)

setEscape

public void setEscape(boolean value)

setEscapeNewline

public void setEscapeNewline(boolean value)

getFileEncoding

public Charset getFileEncoding()

setFileEncoding

public void setFileEncoding(Charset value)

setGlobalSection

public void setGlobalSection(boolean value)

getGlobalSectionName

public String getGlobalSectionName()

setGlobalSectionName

public void setGlobalSectionName(String value)

setHeaderComment

public void setHeaderComment(boolean value)

setInclude

public void setInclude(boolean value)

getLineSeparator

public String getLineSeparator()

setLineSeparator

public void setLineSeparator(String value)

setLowerCaseOption

public void setLowerCaseOption(boolean value)

setLowerCaseSection

public void setLowerCaseSection(boolean value)

setMultiOption

public void setMultiOption(boolean value)

setMultiSection

public void setMultiSection(boolean value)

isEmptyOption

public boolean isEmptyOption()

isEmptySection

public boolean isEmptySection()

isGlobalSection

public boolean isGlobalSection()

isLowerCaseOption

public boolean isLowerCaseOption()

isLowerCaseSection

public boolean isLowerCaseSection()

isMultiOption

public boolean isMultiOption()

isMultiSection

public boolean isMultiSection()

isUnnamedSection

public boolean isUnnamedSection()

getPathSeparator

public char getPathSeparator()

setPathSeparator

public void setPathSeparator(char value)

setPropertyFirstUpper

public void setPropertyFirstUpper(boolean value)

isPropertyFirstUpper

public boolean isPropertyFirstUpper()

isStrictOperator

public boolean isStrictOperator()

setStrictOperator

public void setStrictOperator(boolean value)

isComment

public boolean isComment()

isHeaderComment

public boolean isHeaderComment()

setTree

public void setTree(boolean value)

setUnnamedSection

public void setUnnamedSection(boolean value)

clone

public Config clone()
Overrides:
clone in class Object

reset

public final void reset()


Copyright © 2011. All Rights Reserved.