org.codehaus.plexus.util.xml.XmlStreamReader.close()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(54)

本文整理了Java中org.codehaus.plexus.util.xml.XmlStreamReader.close()方法的一些代码示例,展示了XmlStreamReader.close()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlStreamReader.close()方法的具体详情如下:
包路径:org.codehaus.plexus.util.xml.XmlStreamReader
类名称:XmlStreamReader
方法名:close

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();
  }
}

相关文章

微信公众号

最新文章

更多