本文整理了Java中java.util.Formatter.ioException()
方法的一些代码示例,展示了Formatter.ioException()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Formatter.ioException()
方法的具体详情如下:
包路径:java.util.Formatter
类名称:Formatter
方法名:ioException
[英]Returns the last IOException thrown by the Formatter's output destination. If the append() method of the destination does not throw IOExceptions, the ioException() method will always return null.
[中]返回格式化程序输出目标引发的最后一个IOException。如果目标的append()方法没有抛出ioException,ioException()方法将始终返回null。
代码示例来源:origin: linkedin/ml-ease
static void printf(Formatter formatter, String format, Object... args) throws IOException {
formatter.format(format, args);
IOException ioException = formatter.ioException();
if (ioException != null) throw ioException;
}
代码示例来源:origin: de.bwaldvogel/liblinear
static void printf(Formatter formatter, String format, Object... args) throws IOException {
formatter.format(format, args);
IOException ioException = formatter.ioException();
if (ioException != null) throw ioException;
}
代码示例来源:origin: org.scalanlp/nak
static void printf(Formatter formatter, String format, Object... args) throws IOException {
formatter.format(format, args);
IOException ioException = formatter.ioException();
if (ioException != null) throw ioException;
}
代码示例来源:origin: domaframework/doma
private void throwExceptionIfNecessary() {
IOException e = formatter.ioException();
if (e != null) {
throw new UncheckedIOException(e);
}
}
代码示例来源:origin: stackoverflow.com
Formatter f=new Formatter(tsWriter);
extendedModels.stream().distinct().forEachOrdered(
x -> f.format("import {%1$s} from './%1$s';\n", x));
f.flush();
if(f.ioException()!=null) throw f.ioException();
代码示例来源:origin: org.cthul/cthul-strings
protected void standardFormat(Locale l, String format, Object arg) throws IOException {
if (util == null) {
util = new java.util.Formatter(out, conf.locale());
tmp = new Object[1];
}
tmp[0] = arg;
util.format(l, format, tmp);
IOException e = util.ioException();
if (e != null) throw e;
}
代码示例来源:origin: org.scalanlp/nak
IOException ioException = formatter.ioException();
if (ioException != null) throw ioException;
代码示例来源:origin: linkedin/ml-ease
IOException ioException = formatter.ioException();
if (ioException != null) throw ioException;
代码示例来源:origin: de.bwaldvogel/liblinear
IOException ioException = formatter.ioException();
if (ioException != null) throw ioException;
内容来源于网络,如有侵权,请联系作者删除!