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