Package org.ini4j
Class Config
- java.lang.Object
-
- org.ini4j.Config
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class Config extends java.lang.Object implements java.lang.Cloneable, java.io.Serializable- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_COMMENTstatic booleanDEFAULT_EMPTY_OPTIONstatic booleanDEFAULT_EMPTY_SECTIONstatic booleanDEFAULT_ESCAPEstatic java.nio.charset.CharsetDEFAULT_FILE_ENCODINGstatic booleanDEFAULT_GLOBAL_SECTIONstatic java.lang.StringDEFAULT_GLOBAL_SECTION_NAMEstatic booleanDEFAULT_HEADER_COMMENTstatic booleanDEFAULT_INCLUDEstatic java.lang.StringDEFAULT_LINE_SEPARATORstatic booleanDEFAULT_LOWER_CASE_OPTIONstatic booleanDEFAULT_LOWER_CASE_SECTIONstatic booleanDEFAULT_MULTI_OPTIONstatic booleanDEFAULT_MULTI_SECTIONstatic charDEFAULT_PATH_SEPARATORstatic booleanDEFAULT_PROPERTY_FIRST_UPPERstatic booleanDEFAULT_STRICT_OPERATORstatic booleanDEFAULT_TREEstatic booleanDEFAULT_UNNAMED_SECTIONstatic java.lang.StringKEY_PREFIXstatic java.lang.StringPROP_COMMENTstatic java.lang.StringPROP_EMPTY_OPTIONstatic java.lang.StringPROP_EMPTY_SECTIONstatic java.lang.StringPROP_ESCAPEstatic java.lang.StringPROP_FILE_ENCODINGstatic java.lang.StringPROP_GLOBAL_SECTIONstatic java.lang.StringPROP_GLOBAL_SECTION_NAMEstatic java.lang.StringPROP_HEADER_COMMENTstatic java.lang.StringPROP_INCLUDEstatic java.lang.StringPROP_LINE_SEPARATORstatic java.lang.StringPROP_LOWER_CASE_OPTIONstatic java.lang.StringPROP_LOWER_CASE_SECTIONstatic java.lang.StringPROP_MULTI_OPTIONstatic java.lang.StringPROP_MULTI_SECTIONstatic java.lang.StringPROP_PATH_SEPARATORstatic java.lang.StringPROP_PROPERTY_FIRST_UPPERstatic java.lang.StringPROP_STRICT_OPERATORstatic java.lang.StringPROP_TREEstatic java.lang.StringPROP_UNNAMED_SECTION
-
Constructor Summary
Constructors Constructor Description Config()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Configclone()static java.lang.StringgetEnvironment(java.lang.String name)static java.lang.StringgetEnvironment(java.lang.String name, java.lang.String defaultValue)java.nio.charset.CharsetgetFileEncoding()static ConfiggetGlobal()java.lang.StringgetGlobalSectionName()java.lang.StringgetLineSeparator()chargetPathSeparator()static java.lang.StringgetSystemProperty(java.lang.String name)static java.lang.StringgetSystemProperty(java.lang.String name, java.lang.String defaultValue)booleanisComment()booleanisEmptyOption()booleanisEmptySection()booleanisEscape()booleanisGlobalSection()booleanisHeaderComment()booleanisInclude()booleanisLowerCaseOption()booleanisLowerCaseSection()booleanisMultiOption()booleanisMultiSection()booleanisPropertyFirstUpper()booleanisStrictOperator()booleanisTree()booleanisUnnamedSection()voidreset()voidsetComment(boolean value)voidsetEmptyOption(boolean value)voidsetEmptySection(boolean value)voidsetEscape(boolean value)voidsetFileEncoding(java.nio.charset.Charset value)voidsetGlobalSection(boolean value)voidsetGlobalSectionName(java.lang.String value)voidsetHeaderComment(boolean value)voidsetInclude(boolean value)voidsetLineSeparator(java.lang.String value)voidsetLowerCaseOption(boolean value)voidsetLowerCaseSection(boolean value)voidsetMultiOption(boolean value)voidsetMultiSection(boolean value)voidsetPathSeparator(char value)voidsetPropertyFirstUpper(boolean value)voidsetStrictOperator(boolean value)voidsetTree(boolean value)voidsetUnnamedSection(boolean value)
-
-
-
Field Detail
-
KEY_PREFIX
public static final java.lang.String KEY_PREFIX
- See Also:
- Constant Field Values
-
PROP_EMPTY_OPTION
public static final java.lang.String PROP_EMPTY_OPTION
- See Also:
- Constant Field Values
-
PROP_EMPTY_SECTION
public static final java.lang.String PROP_EMPTY_SECTION
- See Also:
- Constant Field Values
-
PROP_GLOBAL_SECTION
public static final java.lang.String PROP_GLOBAL_SECTION
- See Also:
- Constant Field Values
-
PROP_GLOBAL_SECTION_NAME
public static final java.lang.String PROP_GLOBAL_SECTION_NAME
- See Also:
- Constant Field Values
-
PROP_INCLUDE
public static final java.lang.String PROP_INCLUDE
- See Also:
- Constant Field Values
-
PROP_LOWER_CASE_OPTION
public static final java.lang.String PROP_LOWER_CASE_OPTION
- See Also:
- Constant Field Values
-
PROP_LOWER_CASE_SECTION
public static final java.lang.String PROP_LOWER_CASE_SECTION
- See Also:
- Constant Field Values
-
PROP_MULTI_OPTION
public static final java.lang.String PROP_MULTI_OPTION
- See Also:
- Constant Field Values
-
PROP_MULTI_SECTION
public static final java.lang.String PROP_MULTI_SECTION
- See Also:
- Constant Field Values
-
PROP_STRICT_OPERATOR
public static final java.lang.String PROP_STRICT_OPERATOR
- See Also:
- Constant Field Values
-
PROP_UNNAMED_SECTION
public static final java.lang.String PROP_UNNAMED_SECTION
- See Also:
- Constant Field Values
-
PROP_ESCAPE
public static final java.lang.String PROP_ESCAPE
- See Also:
- Constant Field Values
-
PROP_PATH_SEPARATOR
public static final java.lang.String PROP_PATH_SEPARATOR
- See Also:
- Constant Field Values
-
PROP_TREE
public static final java.lang.String PROP_TREE
- See Also:
- Constant Field Values
-
PROP_PROPERTY_FIRST_UPPER
public static final java.lang.String PROP_PROPERTY_FIRST_UPPER
- See Also:
- Constant Field Values
-
PROP_FILE_ENCODING
public static final java.lang.String PROP_FILE_ENCODING
- See Also:
- Constant Field Values
-
PROP_LINE_SEPARATOR
public static final java.lang.String PROP_LINE_SEPARATOR
- See Also:
- Constant Field Values
-
PROP_COMMENT
public static final java.lang.String PROP_COMMENT
- See Also:
- Constant Field Values
-
PROP_HEADER_COMMENT
public static final java.lang.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 java.lang.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_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 java.lang.String DEFAULT_LINE_SEPARATOR
-
DEFAULT_FILE_ENCODING
public static final java.nio.charset.Charset DEFAULT_FILE_ENCODING
-
-
Method Detail
-
getEnvironment
public static java.lang.String getEnvironment(java.lang.String name)
-
getEnvironment
public static java.lang.String getEnvironment(java.lang.String name, java.lang.String defaultValue)
-
getGlobal
public static Config getGlobal()
-
getSystemProperty
public static java.lang.String getSystemProperty(java.lang.String name)
-
getSystemProperty
public static java.lang.String getSystemProperty(java.lang.String name, java.lang.String defaultValue)
-
setComment
public void setComment(boolean value)
-
isEscape
public boolean isEscape()
-
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)
-
getFileEncoding
public java.nio.charset.Charset getFileEncoding()
-
setFileEncoding
public void setFileEncoding(java.nio.charset.Charset value)
-
setGlobalSection
public void setGlobalSection(boolean value)
-
getGlobalSectionName
public java.lang.String getGlobalSectionName()
-
setGlobalSectionName
public void setGlobalSectionName(java.lang.String value)
-
setHeaderComment
public void setHeaderComment(boolean value)
-
setInclude
public void setInclude(boolean value)
-
getLineSeparator
public java.lang.String getLineSeparator()
-
setLineSeparator
public void setLineSeparator(java.lang.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:
clonein classjava.lang.Object
-
reset
public final void reset()
-
-