de.pdark.decentxml.XMLIOSource类的使用及代码示例

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

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

XMLIOSource介绍

[英]An XML source based on InputStream or Reader.

This class uses XMLInputStreamReader to read from an InputStream.
[中]基于InputStreamReader的XML源。
这个类使用XMLInputStreamReader来读取InputStream

代码示例

代码示例来源:origin: eclipse/tycho

public static UpdateSite read(InputStream is) throws IOException {
  try {
    return new UpdateSite(parser.parse(new XMLIOSource(is)));
  } finally {
    IOUtil.close(is);
  }
}

代码示例来源:origin: de.pdark/decentxml

public XMLIOSource (File file) throws IOException
{
  super (toString (file));
}

代码示例来源:origin: org.eclipse.tycho/tycho-metadata-model

public static UpdateSite read(InputStream is) throws IOException {
  try {
    return new UpdateSite(parser.parse(new XMLIOSource(is)));
  } finally {
    IOUtil.close(is);
  }
}

代码示例来源:origin: de.pdark/decentxml

public XMLIOSource (URL url) throws IOException
{
  super (toString (url));
}

代码示例来源:origin: org.eclipse.tycho/tycho-metadata-model

public static Feature read(InputStream input) throws IOException {
  try {
    return new Feature(parser.parse(new XMLIOSource(input)));
  } finally {
    IOUtil.close(input);
  }
}

代码示例来源:origin: de.pdark/decentxml

public XMLIOSource (Reader reader) throws IOException
{
  super (toString (reader));
}

代码示例来源:origin: eclipse/tycho

public static Feature read(InputStream input) throws IOException {
  try {
    return new Feature(parser.parse(new XMLIOSource(input)));
  } finally {
    IOUtil.close(input);
  }
}

代码示例来源:origin: de.pdark/decentxml

public static String toString (URL url) throws IOException
{
  return toString (url.openStream ());
}

代码示例来源:origin: eclipse/tycho

public static ProductConfiguration read(InputStream input) throws IOException {
  try {
    return new ProductConfiguration(parser.parse(new XMLIOSource(input)));
  } finally {
    IOUtil.close(input);
  }
}

代码示例来源:origin: de.pdark/decentxml

public static String toString (File file) throws IOException
{
  InputStream in = new FileInputStream (file);
  return toString (in);
}

代码示例来源:origin: org.eclipse.tycho/tycho-metadata-model

public static ProductConfiguration read(InputStream input) throws IOException {
  try {
    return new ProductConfiguration(parser.parse(new XMLIOSource(input)));
  } finally {
    IOUtil.close(input);
  }
}

代码示例来源:origin: de.pdark/decentxml

result = toString (reader);

代码示例来源:origin: org.eclipse.tycho/tycho-metadata-model

public static Category read(InputStream is) throws IOException {
  try {
    return new Category(parser.parse(new XMLIOSource(is)));
  } finally {
    IOUtil.close(is);
  }
}

代码示例来源:origin: eclipse/tycho

public static Category read(InputStream is) throws IOException {
  try {
    return new Category(parser.parse(new XMLIOSource(is)));
  } finally {
    IOUtil.close(is);
  }
}

代码示例来源:origin: org.sonatype.tycho/tycho-metadata-model

public static Target read( File file )
  throws IOException
{
  FileInputStream input = new FileInputStream( file );
  try
  {
    return new Target( parser.parse( new XMLIOSource( input ) ) );
  }
  finally
  {
    IOUtil.close( input );
  }
}

代码示例来源:origin: org.sonatype.tycho/tycho-metadata-model

public static ProductConfiguration read( InputStream input )
  throws IOException
{
  try
  {
    return new ProductConfiguration( parser.parse( new XMLIOSource( input ) ) );
  }
  finally
  {
    IOUtil.close( input );
  }
}

代码示例来源:origin: org.sonatype.tycho/tycho-metadata-model

public static Feature read( InputStream input )
  throws IOException
{
  try
  {
    return new Feature( parser.parse( new XMLIOSource( input ) ) );
  }
  finally
  {
    IOUtil.close( input );
  }
}

代码示例来源:origin: org.sonatype.tycho/tycho-metadata-model

public static Category read( InputStream is )
  throws IOException
{
  try
  {
    return new Category( parser.parse( new XMLIOSource( is ) ) );
  }
  finally
  {
    IOUtil.close( is );
  }
}

代码示例来源:origin: org.sonatype.tycho/tycho-metadata-model

public static UpdateSite read( InputStream is )
  throws IOException
{
  try
  {
    return new UpdateSite( parser.parse( new XMLIOSource( is ) ) );
  }
  finally
  {
    IOUtil.close( is );
  }
}

代码示例来源:origin: de.pdark/decentxml

/** Convenience method to parse a file into XML. 
   * @throws IOException
   */
  public static Document parse (File file) throws IOException
  {
    XMLIOSource source = new XMLIOSource (file);
    XMLParser parser = new XMLParser ();
    return parser.parse (source);
  }
}

相关文章

XMLIOSource类方法