Ensures that all pending data is sent out to the target stream. It also flushes the target stream. If an I/O error occurs, this stream's error state is set to true.
()
| 260 | * state is set to {@code true}. |
| 261 | */ |
| 262 | @Override |
| 263 | public synchronized void flush() { |
| 264 | if (out != null) { |
| 265 | try { |
| 266 | out.flush(); |
| 267 | return; |
| 268 | } catch (IOException e) { |
| 269 | // Ignored, fall through to setError |
| 270 | } |
| 271 | } |
| 272 | setError(); |
| 273 | } |
| 274 | |
| 275 | /** |
| 276 | * Writes a string formatted by an intermediate {@code Formatter} to the |
no test coverage detected