本文整理了Java中com.google.api.client.json.JsonParser.close()
方法的一些代码示例,展示了JsonParser.close()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JsonParser.close()
方法的具体详情如下:
包路径:com.google.api.client.json.JsonParser
类名称:JsonParser
方法名:close
暂无
代码示例来源:origin: com.google.api.client/google-api-client-googleapis
/** Closes the underlying parser. */
public void close() throws IOException {
this.parser.close();
}
代码示例来源:origin: com.google.api.client/google-api-client-googleapis
} finally {
if (failed) {
parser.close();
代码示例来源:origin: com.octo.android.robospice/robospice-google-http-client
@Override
protected T readCacheDataFromFile(File file) throws CacheLoadingException {
try {
JsonParser jsonParser = jsonFactory.createJsonParser(new FileReader(file));
T result = jsonParser.parse(getHandledClass(), null);
jsonParser.close();
return result;
} catch (FileNotFoundException e) {
// Should not occur (we test before if file exists)
// Do not throw, file is not cached
Ln.w("file " + file.getAbsolutePath() + " does not exists", e);
return null;
} catch (Exception e) {
throw new CacheLoadingException(e);
}
}
代码示例来源:origin: com.google.api-client/google-api-client
parser.close();
代码示例来源:origin: com.google.api-client/google-api-client
response.ignore();
} else if (details == null) {
parser.close();
内容来源于网络,如有侵权,请联系作者删除!