Class YamlConfiguration
java.lang.Object
com.dianxin.tori.base.configuration.yaml.YamlConfiguration
- All Implemented Interfaces:
FileConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanKiểm tra path có tồn tại không.Lấy giá trị Object thô.booleangetBoolean(String path) booleangetBoolean(String path, boolean def) doubledoubleintintList<?> getStringList(String path) voidTải dữ liệu từ file vào bộ nhớ.voidLưu dữ liệu từ bộ nhớ xuống file.voidSet giá trị vào path.
-
Constructor Details
-
YamlConfiguration
public YamlConfiguration()
-
-
Method Details
-
load
Description copied from interface:FileConfigurationTải dữ liệu từ file vào bộ nhớ.- Specified by:
loadin interfaceFileConfiguration- Throws:
IOException
-
save
Description copied from interface:FileConfigurationLưu dữ liệu từ bộ nhớ xuống file.- Specified by:
savein interfaceFileConfiguration- Throws:
IOException
-
get
Description copied from interface:FileConfigurationLấy giá trị Object thô.- Specified by:
getin interfaceFileConfiguration
-
get
- Specified by:
getin interfaceFileConfiguration
-
set
Description copied from interface:FileConfigurationSet giá trị vào path.- Specified by:
setin interfaceFileConfiguration
-
contains
Description copied from interface:FileConfigurationKiểm tra path có tồn tại không.- Specified by:
containsin interfaceFileConfiguration
-
getString
- Specified by:
getStringin interfaceFileConfiguration
-
getString
- Specified by:
getStringin interfaceFileConfiguration
-
getInt
- Specified by:
getIntin interfaceFileConfiguration
-
getInt
- Specified by:
getIntin interfaceFileConfiguration
-
getDouble
- Specified by:
getDoublein interfaceFileConfiguration
-
getDouble
- Specified by:
getDoublein interfaceFileConfiguration
-
getBoolean
- Specified by:
getBooleanin interfaceFileConfiguration
-
getBoolean
- Specified by:
getBooleanin interfaceFileConfiguration
-
getList
- Specified by:
getListin interfaceFileConfiguration
-
getStringList
- Specified by:
getStringListin interfaceFileConfiguration
-