Package com.bluersw.analyze
Class YamlFormat
java.lang.Object
com.bluersw.analyze.AbstractFormat
com.bluersw.analyze.YamlFormat
- All Implemented Interfaces:
Configuration
解析YAML格式的内容 Parse content in YAML format
- Author:
- sunweisheng
-
Field Summary
Fields inherited from class com.bluersw.analyze.AbstractFormat
content, data, index -
Constructor Summary
ConstructorsConstructorDescriptionYamlFormat(InputStream inputStream) 构造函数 ConstructorYamlFormat(String yamlContent) 构造函数 Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected LinkedHashMap<String, Object> loadData()加载YAML内容并结构化为LinkedHashMap Load YAML content and structure it as LinkedHashMapMethods inherited from class com.bluersw.analyze.AbstractFormat
getValueListBySearch
-
Constructor Details
-
YamlFormat
构造函数 Constructor- Parameters:
yamlContent- YAML格式内容 YAML format content- Throws:
Exception- 父类加载数据时或转化结构时可能抛出异常 Exceptions may be thrown when the parent class loads data or transforms structures
-
YamlFormat
构造函数 Constructor- Parameters:
inputStream- YAML格式文件的流对象 Stream object of YAML format file- Throws:
Exception- 父类加载数据时或转化结构时可能抛出异常 Exceptions may be thrown when the parent class loads data or transforms structures
-
-
Method Details
-
loadData
加载YAML内容并结构化为LinkedHashMap Load YAML content and structure it as LinkedHashMap- Specified by:
loadDatain classAbstractFormat- Returns:
- YAML内容的LinkedHashMap结构 LinkedHashMap structure of YAML content
-