本文整理了Java中java.io.OutputStream.checkError()
方法的一些代码示例,展示了OutputStream.checkError()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OutputStream.checkError()
方法的具体详情如下:
包路径:java.io.OutputStream
类名称:OutputStream
方法名:checkError
[英]Returns true if this writer has encountered and suppressed an error. Used by PrintStreams as an alternative to checked exceptions.
[中]如果此编写器遇到并抑制了错误,则返回true。由PrintStreams用作已检查异常的替代方案。
代码示例来源:origin: robovm/robovm
@Override boolean checkError() {
return out.checkError();
}
}
代码示例来源:origin: robovm/robovm
/**
* Flushes this stream and returns the value of the error flag.
*
* @return {@code true} if either an {@code IOException} has been thrown
* previously or if {@code setError()} has been called;
* {@code false} otherwise.
* @see #setError()
*/
public boolean checkError() {
OutputStream delegate = out;
if (delegate == null) {
return ioError;
}
flush();
return ioError || delegate.checkError();
}
代码示例来源:origin: MobiVM/robovm
@Override boolean checkError() {
return out.checkError();
}
}
代码示例来源:origin: com.jtransc/jtransc-rt
@Override
boolean checkError() {
return out.checkError();
}
}
代码示例来源:origin: ibinti/bugvm
@Override boolean checkError() {
return out.checkError();
}
}
代码示例来源:origin: com.gluonhq/robovm-rt
@Override boolean checkError() {
return out.checkError();
}
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
@Override boolean checkError() {
return out.checkError();
}
}
代码示例来源:origin: com.bugvm/bugvm-rt
@Override boolean checkError() {
return out.checkError();
}
}
代码示例来源:origin: FlexoVM/flexovm
@Override boolean checkError() {
return out.checkError();
}
}
代码示例来源:origin: MobiVM/robovm
/**
* Flushes this stream and returns the value of the error flag.
*
* @return {@code true} if either an {@code IOException} has been thrown
* previously or if {@code setError()} has been called;
* {@code false} otherwise.
* @see #setError()
*/
public boolean checkError() {
OutputStream delegate = out;
if (delegate == null) {
return ioError;
}
flush();
return ioError || delegate.checkError();
}
代码示例来源:origin: ibinti/bugvm
/**
* Flushes this stream and returns the value of the error flag.
*
* @return {@code true} if either an {@code IOException} has been thrown
* previously or if {@code setError()} has been called;
* {@code false} otherwise.
* @see #setError()
*/
public boolean checkError() {
OutputStream delegate = out;
if (delegate == null) {
return ioError;
}
flush();
return ioError || delegate.checkError();
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Flushes this stream and returns the value of the error flag.
*
* @return {@code true} if either an {@code IOException} has been thrown
* previously or if {@code setError()} has been called;
* {@code false} otherwise.
* @see #setError()
*/
public boolean checkError() {
OutputStream delegate = out;
if (delegate == null) {
return ioError;
}
flush();
return ioError || delegate.checkError();
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Flushes this stream and returns the value of the error flag.
*
* @return {@code true} if either an {@code IOException} has been thrown
* previously or if {@code setError()} has been called;
* {@code false} otherwise.
* @see #setError()
*/
public boolean checkError() {
OutputStream delegate = out;
if (delegate == null) {
return ioError;
}
flush();
return ioError || delegate.checkError();
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Flushes this stream and returns the value of the error flag.
*
* @return {@code true} if either an {@code IOException} has been thrown
* previously or if {@code setError()} has been called;
* {@code false} otherwise.
* @see #setError()
*/
public boolean checkError() {
OutputStream delegate = out;
if (delegate == null) {
return ioError;
}
flush();
return ioError || delegate.checkError();
}
代码示例来源:origin: com.jtransc/jtransc-rt
/**
* Flushes this stream and returns the value of the error flag.
*
* @return {@code true} if either an {@code IOException} has been thrown
* previously or if {@code setError()} has been called;
* {@code false} otherwise.
* @see #setError()
*/
public boolean checkError() {
OutputStream delegate = out;
if (delegate == null) {
return ioError;
}
flush();
return ioError || delegate.checkError();
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Flushes this stream and returns the value of the error flag.
*
* @return {@code true} if either an {@code IOException} has been thrown
* previously or if {@code setError()} has been called;
* {@code false} otherwise.
* @see #setError()
*/
public boolean checkError() {
OutputStream delegate = out;
if (delegate == null) {
return ioError;
}
flush();
return ioError || delegate.checkError();
}
内容来源于网络,如有侵权,请联系作者删除!