Flushes this stream and returns the value of the error flag. @return true if either an IOException has been thrown previously or if setError() has been called; false otherwise. @see #setError()
()
| 227 | * @see #setError() |
| 228 | */ |
| 229 | public boolean checkError() { |
| 230 | OutputStream delegate = out; |
| 231 | if (delegate == null) { |
| 232 | return ioError; |
| 233 | } |
| 234 | |
| 235 | flush(); |
| 236 | return ioError || delegate.checkError(); |
| 237 | } |
| 238 | |
| 239 | /** |
| 240 | * Closes this print stream. Flushes this stream and then closes the target |
nothing calls this directly
no test coverage detected