Appends a single character to the buffer. @param c the character to append @throws IOException Writing overflow data to the output channel failed
(char c)
| 189 | * @throws IOException Writing overflow data to the output channel failed |
| 190 | */ |
| 191 | public void append(char c) throws IOException { |
| 192 | makeSpace(1); |
| 193 | int limit = getLimitInternal(); |
| 194 | |
| 195 | // couldn't make space |
| 196 | if (end >= limit) { |
| 197 | flushBuffer(); |
| 198 | } |
| 199 | buff[end++] = c; |
| 200 | } |
| 201 | |
| 202 | |
| 203 | /** |