本文整理了Java中javax.json.stream.JsonParser.close()
方法的一些代码示例,展示了JsonParser.close()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JsonParser.close()
方法的具体详情如下:
包路径:javax.json.stream.JsonParser
类名称:JsonParser
方法名:close
[英]Closes this parser and frees any resources associated with the parser. This method closes the underlying input source.
[中]关闭此解析器并释放与该解析器关联的所有资源。此方法关闭基础输入源。
代码示例来源:origin: apache/activemq-artemis
@Override
public void close() {
if (!closed) {
closed = true;
parser.close();
}
}
代码示例来源:origin: apache/activemq-artemis
@Override
public void close() {
if (!closed) {
closed = true;
parser.close();
}
}
代码示例来源:origin: org.ovirt.engine.api/metamodel-runtime
/**
* Closes the JSON document and the underlying source.
*/
public void close() {
parser.close();
}
}
代码示例来源:origin: org.eclipse/yasson
@Override
public void close() {
jsonParser.close();
}
代码示例来源:origin: org.apache.activemq/artemis-jms-client-all
@Override
public void close() {
if (!closed) {
closed = true;
parser.close();
}
}
代码示例来源:origin: apache/johnzon
@Override
public void close() {
jsonParser.close();
}
代码示例来源:origin: org.apache.johnzon/johnzon-core
@Override
public void close() {
jsonParser.close();
}
代码示例来源:origin: com.owlike/genson
@Override
public void close() {
parser.close();
}
代码示例来源:origin: owlike/genson
@Override
public void close() {
parser.close();
}
代码示例来源:origin: beckchr/staxon
@Override
public void close() throws IOException {
try {
parser.close();
} catch (JsonException e) {
if (e.getCause() instanceof IOException) {
throw (IOException) e.getCause();
} else {
throw e;
}
}
}
内容来源于网络,如有侵权,请联系作者删除!