java.io.OutputStream.checkError()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(114)

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

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();
}

相关文章

微信公众号

最新文章

更多