Flushes this writer. The contents of the buffer are committed to the target writer and it is then flushed. @throws IOException if an error occurs while flushing this writer.
()
| 129 | * if an error occurs while flushing this writer. |
| 130 | */ |
| 131 | @Override |
| 132 | public void flush() throws IOException { |
| 133 | synchronized (lock) { |
| 134 | if (isClosed()) { |
| 135 | throw new IOException(Messages.getString("luni.A7")); //$NON-NLS-1$ |
| 136 | } |
| 137 | flushInternal(); |
| 138 | out.flush(); |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | /** |
| 143 | * Flushes the internal buffer. |
nothing calls this directly
no test coverage detected