本文整理了Java中org.codehaus.plexus.util.xml.XmlStreamReader.close()
方法的一些代码示例,展示了XmlStreamReader.close()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlStreamReader.close()
方法的具体详情如下:
包路径:org.codehaus.plexus.util.xml.XmlStreamReader
类名称:XmlStreamReader
方法名:close
暂无
代码示例来源:origin: org.codehaus.tycho/tycho-osgi-components
@SuppressWarnings("deprecation")
public static Platform read(File file) throws IOException, XmlPullParserException {
XmlStreamReader reader = ReaderFactory.newXmlReader(file);
try {
return new Platform(Xpp3DomBuilder.build(reader));
} finally {
reader.close();
}
}
代码示例来源:origin: org.codehaus.tycho/tycho-osgi-components
@SuppressWarnings("deprecation")
public static Feature read(InputStream input) throws IOException, XmlPullParserException {
XmlStreamReader reader = ReaderFactory.newXmlReader(input);
try {
return new Feature(Xpp3DomBuilder.build(reader));
} finally {
reader.close();
}
}
代码示例来源:origin: org.codehaus.tycho/tycho-osgi-components
@SuppressWarnings("deprecation")
public static ProductConfiguration read(File file) throws IOException,
XmlPullParserException {
XmlStreamReader reader = ReaderFactory.newXmlReader(file);
try {
return new ProductConfiguration(Xpp3DomBuilder.build(reader));
} finally {
reader.close();
}
}
代码示例来源:origin: org.codehaus.tycho/tycho-osgi-components
@SuppressWarnings("deprecation")
public static ProductConfiguration read(InputStream inputStream)
throws IOException, XmlPullParserException {
XmlStreamReader reader = ReaderFactory.newXmlReader(inputStream);
try {
return new ProductConfiguration(Xpp3DomBuilder.build(reader));
} finally {
reader.close();
}
}
代码示例来源:origin: org.eclipse.tycho/tycho-metadata-model
@SuppressWarnings("deprecation")
public static Platform read(File file) throws IOException, XmlPullParserException {
XmlStreamReader reader = ReaderFactory.newXmlReader(file);
try {
return new Platform(Xpp3DomBuilder.build(reader));
} finally {
reader.close();
}
}
代码示例来源:origin: org.sonatype.tycho/tycho-metadata-model
@SuppressWarnings("deprecation")
public static Platform read(File file) throws IOException, XmlPullParserException {
XmlStreamReader reader = ReaderFactory.newXmlReader(file);
try {
return new Platform(Xpp3DomBuilder.build(reader));
} finally {
reader.close();
}
}
代码示例来源:origin: eclipse/tycho
@SuppressWarnings("deprecation")
public static Platform read(File file) throws IOException, XmlPullParserException {
XmlStreamReader reader = ReaderFactory.newXmlReader(file);
try {
return new Platform(Xpp3DomBuilder.build(reader));
} finally {
reader.close();
}
}
代码示例来源:origin: org.codehaus.tycho/tycho-osgi-components
@SuppressWarnings("deprecation")
public static UpdateSite read(InputStream is)
throws IOException, XmlPullParserException
{
XmlStreamReader reader = ReaderFactory.newXmlReader(is);
try {
return new UpdateSite(Xpp3DomBuilder.build(reader));
} finally {
reader.close();
}
}
代码示例来源:origin: org.codehaus.tycho/tycho-osgi-components
@SuppressWarnings( "deprecation" )
public static Target read( File file )
throws IOException, XmlPullParserException
{
XmlStreamReader reader = ReaderFactory.newXmlReader( file );
try
{
return new Target( Xpp3DomBuilder.build( reader ) );
}
finally
{
reader.close();
}
}
内容来源于网络,如有侵权,请联系作者删除!