(int c)
| 185 | |
| 186 | |
| 187 | @Override |
| 188 | public void write(int c) throws IOException { |
| 189 | ensureOpen(); |
| 190 | if (bufferSize == 0) { |
| 191 | initOut(); |
| 192 | out.write(c); |
| 193 | } else { |
| 194 | if (nextChar >= bufferSize) { |
| 195 | if (autoFlush) { |
| 196 | flushBuffer(); |
| 197 | } else { |
| 198 | bufferOverflow(); |
| 199 | } |
| 200 | } |
| 201 | cb[nextChar++] = (char) c; |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | /** |
| 206 | * Our own little min method, to avoid loading java.lang.Math if we've run out of file descriptors, and we're trying |
no test coverage detected