-
- 所有超级接口:
ConfigurationSection
public interface Configuration extends ConfigurationSection
-
-
方法概要
修饰符和类型 方法 说明 @NotNull Configuration
clone()
default @NotNull Configuration
copy()
Copy this configuration.String
header()
The header of this configuration.Configuration
header(String header)
Set header of this configuration.default void
load(File file)
Load configuration from filevoid
load(InputStream stream)
Load configuration from a streamvoid
load(Reader stream)
Load configuration from a Reader.default void
load(Path file)
Load configuration from Path@NotNull Configuration
newContext()
Create a new reading/writing context of this configurationdefault void
store(File file)
Save this configurationvoid
store(OutputStream stream)
Write this configuration to steamvoid
store(Writer writer)
Write this configuration to writer.default void
store(Path file)
Save this configuration-
从接口继承的方法 cn.mcres.karlatemp.mxlib.config.ConfigurationSection
booleanV, booleanV, byteV, byteV, charV, charV, clear, clearSplitter, doubleV, doubleV, exists, floatV, floatV, hasCurrentSplitter, intV, intV, keys, list, list, longV, longV, merge, number, number, parent, parent, pathSplitter, pathSplitter, remove, root, section, sectionIfExist, sectionOrCreate, set, shortV, shortV, string, string, string, stringList, stringList, useSplitter, useSplitter, value, value, value, values
-
-
-
-
方法详细资料
-
header
String header()
The header of this configuration. But Now NOT Implement this method.- 返回:
- THe header of this configuration.
-
header
Configuration header(String header)
Set header of this configuration. But Now NOT Implement this method.- 参数:
header
- The header- 返回:
- this.
-
load
default void load(Path file) throws IOException
Load configuration from Path- 参数:
file
- The Path.- 抛出:
IOException
- I/O Exception
-
load
default void load(File file) throws IOException
Load configuration from file- 参数:
file
- The file- 抛出:
IOException
- I/O Exception
-
load
void load(Reader stream) throws IOException
Load configuration from a Reader.- 参数:
stream
- The reader.- 抛出:
IOException
- I/O Exception
-
load
void load(InputStream stream) throws IOException
Load configuration from a stream- 参数:
stream
- The stream.- 抛出:
IOException
- I/O Exception
-
store
void store(OutputStream stream) throws IOException
Write this configuration to steam- 参数:
stream
- The steam.- 抛出:
IOException
- I/O Exception
-
store
void store(Writer writer) throws IOException
Write this configuration to writer.- 参数:
writer
- The writer- 抛出:
IOException
- I/O Exception
-
store
default void store(File file) throws IOException
Save this configuration- 参数:
file
- The location- 抛出:
IOException
- I/O Exception
-
store
default void store(Path file) throws IOException
Save this configuration- 参数:
file
- The location- 抛出:
IOException
- I/O Exception
-
newContext
@NotNull @NotNull Configuration newContext()
Create a new reading/writing context of this configurationRead and write operations are synchronized
- 指定者:
newContext
在接口中ConfigurationSection
- 返回:
- The new context.
-
copy
@NotNull default @NotNull Configuration copy()
Copy this configuration.- 指定者:
copy
在接口中ConfigurationSection
- 返回:
- Coped Configuration
-
clone
@NotNull @NotNull Configuration clone()
- 指定者:
clone
在接口中ConfigurationSection
-
-