public class YamlReader extends AbstractReader implements Reader
CLASSPATH, inputStream| 构造器和说明 |
|---|
YamlReader(File file) |
YamlReader(String path) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
get(String key)
从 JSON 对象中取出 key 对应的 value
|
com.alibaba.fastjson.JSON |
read()
读文件
|
isClassPath, isNull, stream, stream, validationpublic YamlReader(String path) throws ReaderException
ReaderExceptionpublic YamlReader(File file) throws ReaderException
ReaderExceptionpublic com.alibaba.fastjson.JSON read()
throws ReaderException
Readerread 在接口中 ReaderReaderExceptionpublic String get(String key) throws ReaderException
Readerget 在接口中 Readerkey - 指定 keyReaderExceptionCopyright © 2019. All rights reserved.