本文整理了Java中de.pdark.decentxml.XMLIOSource
类的一些代码示例,展示了XMLIOSource
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLIOSource
类的具体详情如下:
包路径:de.pdark.decentxml.XMLIOSource
类名称:XMLIOSource
[英]An XML source based on InputStream
or Reader
.
This class uses XMLInputStreamReader
to read from an InputStream
.
[中]基于InputStream
或Reader
的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);
}
}
内容来源于网络,如有侵权,请联系作者删除!