public class YamlFormat extends AbstractFormat
content, data, index| Constructor and Description | 
|---|
YamlFormat(InputStream inputStream)
构造函数 Constructor 
 | 
YamlFormat(String yamlContent)
构造函数 Constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected LinkedHashMap<String,Object> | 
loadData()
加载YAML内容并结构化为LinkedHashMap Load YAML content and structure it as LinkedHashMap 
 | 
getValueListBySearchpublic YamlFormat(String yamlContent) throws Exception
yamlContent - YAML格式内容 YAML format contentException - 父类加载数据时或转化结构时可能抛出异常 Exceptions may be thrown when the parent class loads data or transforms structurespublic YamlFormat(InputStream inputStream) throws Exception
inputStream - YAML格式文件的流对象 Stream object of YAML format fileException - 父类加载数据时或转化结构时可能抛出异常 Exceptions may be thrown when the parent class loads data or transforms structuresprotected LinkedHashMap<String,Object> loadData()
loadData in class AbstractFormatCopyright © 2016–2021. All rights reserved.