
com.qiniu.service.line.JsonStrParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qsuits Show documentation
Show all versions of qsuits Show documentation
qiniu-suits is a efficient tools for qiniu api implemented by java8.
package com.qiniu.service.line;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.qiniu.service.interfaces.ILineParser;
import java.io.IOException;
import java.util.*;
public class JsonStrParser implements ILineParser {
private JsonObjParser jsonObjParser;
public JsonStrParser(Map indexMap) throws IOException {
this.jsonObjParser = new JsonObjParser(indexMap, false);
}
public Map getItemMap(String line) throws IOException {
JsonObject parsed = new JsonParser().parse(line).getAsJsonObject();
return jsonObjParser.getItemMap(parsed);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy