public abstract class ReaderJSONLoader extends AbstractJSONLoader
JSON 配置文件加载器
默认使用 UTF8 字符集
这个加载器适用于使用 Reader 加载资源文件的加载器, 子类必须实现 getReader(String resourceFileName) 方法
JSON file loader
This loader uses Reader to load resource, subclass must implement method getReader(String resourceFileName)
Email: fishinlove@163.com
created by 2019/04/22 18:41:41
| 限定符 | 构造器和说明 |
|---|---|
protected |
ReaderJSONLoader(java.nio.file.Path resourceFileName,
java.lang.String namespace,
java.nio.charset.Charset charset)
根据资源文件名称构建
Construct with resource file
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
namespace()
获取这个加载资源的命名空间
Get the namespace
|
loadprotected ReaderJSONLoader(java.nio.file.Path resourceFileName,
java.lang.String namespace,
java.nio.charset.Charset charset)
根据资源文件名称构建
Construct with resource file
resourceFileName - 资源文件名称
resource file
namespace - 指定的命名空间
Appointed namespace
charset - 读取资源的字符集
The charset of this resource
public java.lang.String namespace()
Loadable获取这个加载资源的命名空间
Get the namespace
这个资源的命名空间
The namespace of this resource
Copyright © 2019. All Rights Reserved.