类 FileConfigSource<SECTION extends ConfigureSection,ORIGINAL,SELF extends FileConfigSource<SECTION,ORIGINAL,SELF>>
java.lang.Object
cc.carm.lib.configuration.source.section.ConfigureSource<SECTION,ORIGINAL,SELF>
cc.carm.lib.configuration.source.file.FileConfigSource<SECTION,ORIGINAL,SELF>
- 所有已实现的接口:
ConfigureSection
public abstract class FileConfigSource<SECTION extends ConfigureSection,ORIGINAL,SELF extends FileConfigSource<SECTION,ORIGINAL,SELF>>
extends ConfigureSource<SECTION,ORIGINAL,SELF>
-
字段概要
字段从类继承的字段 cc.carm.lib.configuration.source.section.ConfigureSource
holder, lastUpdateMillis -
构造器概要
构造器限定符构造器说明protectedFileConfigSource(@NotNull ConfigurationHolder<? extends SELF> holder, long lastUpdateMillis, @NotNull File file, @Nullable String resourcePath) -
方法概要
修饰符和类型方法说明charset()booleanprotected <R> RfileInputStream(@NotNull DataFunction<InputStream, R> loader) protected voidfileOutputStream(@NotNull DataConsumer<OutputStream> stream) protected <R> RfileReader(@NotNull DataFunction<Reader, R> loader) protected voidfileReadString(@NotNull DataConsumer<String> loader) protected <R> RfileReadString(@NotNull DataFunction<String, R> loader) protected voidfileWriter(@NotNull DataConsumer<Writer> writer) protected @Nullable InputStreamgetResource(@NotNull String filename) voidprotected voidsaveResource(@NotNull String resourcePath, boolean replace) 从类继承的方法 cc.carm.lib.configuration.source.section.ConfigureSource
asMap, createSection, get, getKeys, getLastUpdateMillis, getValues, holder, isExpired, onReload, original, parent, path, pathSeparator, reload, remove, save, section, self, set从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cc.carm.lib.configuration.source.section.ConfigureSection
childPath, computeSection, computeSection, computeSection, computeSection, contains, containsValue, createSection, createSection, createSection, forEach, fullPath, get, get, get, get, getBoolean, getBoolean, getByte, getByte, getByteList, getChar, getChar, getCharList, getCollection, getDouble, getDouble, getDoubleList, getFloat, getFloat, getFloatList, getInt, getInt, getIntegerList, getList, getList, getLong, getLong, getLongList, getSection, getShort, getShort, getString, getString, getStringList, isBoolean, isByte, isChar, isDouble, isEmpty, isFloat, isInt, isList, isLong, isRoot, isSection, isShort, isString, isType, keys, size, stream, stream, stream, values
-
字段详细资料
-
file
-
resourcePath
-
-
构造器详细资料
-
FileConfigSource
protected FileConfigSource(@NotNull @NotNull ConfigurationHolder<? extends SELF> holder, long lastUpdateMillis, @NotNull @NotNull File file, @Nullable @Nullable String resourcePath)
-
-
方法详细资料
-
charset
-
copyDefaults
public boolean copyDefaults() -
initializeFile
- 抛出:
IOException
-
fileInputStream
protected <R> R fileInputStream(@NotNull @NotNull DataFunction<InputStream, R> loader) throws Exception- 抛出:
Exception
-
fileReader
- 抛出:
Exception
-
fileReadString
- 抛出:
Exception
-
fileReadString
- 抛出:
Exception
-
fileOutputStream
protected void fileOutputStream(@NotNull @NotNull DataConsumer<OutputStream> stream) throws Exception - 抛出:
Exception
-
fileWriter
- 抛出:
Exception
-
saveResource
protected void saveResource(@NotNull @NotNull String resourcePath, boolean replace) throws IOException, IllegalArgumentException -
getResource
-