本文整理了Java中org.openrdf.rio.RDFParseException.toString
方法的一些代码示例,展示了RDFParseException.toString
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RDFParseException.toString
方法的具体详情如下:
包路径:org.openrdf.rio.RDFParseException
类名称:RDFParseException
方法名:toString
暂无
代码示例来源:origin: it.tidalwave.bluebill/it-tidalwave-bluebill-taxonomy-elmo
/*******************************************************************************************************************
*
*
******************************************************************************************************************/
public void import_ (final @Nonnull Object repository, final @Nonnull File file)
throws IOException
{
try
{
InputStream is = new FileInputStream(file);
if (file.getName().endsWith(".gz"))
{
is = new GZIPInputStream(is);
}
final Reader r = new InputStreamReader(is, "UTF-8");
((Repository)repository).getConnection().add(r, "http://foo.bar", RDFFormat.RDFXML); // FIXME
r.close();
}
catch (RDFParseException e)
{
throw new IOException(e.toString()); // Java 5/Android compatibility
}
catch (RepositoryException e)
{
throw new IOException(e.toString()); // Java 5/Android compatibility
}
}
}
代码示例来源:origin: it.tidalwave.bluebill/it-tidalwave-bluebill-factsheet-bbc
throw new IOException(e.toString()); // Java 5 / Android compatibility
代码示例来源:origin: org.openrdf.alibaba/alibaba-repository-object
logger.error(e.toString(), e);
if (schema == null || schema.isEmpty())
throw e;
内容来源于网络,如有侵权,请联系作者删除!