Is another response available in our buffer? @return true if another response is in the buffer @since JavaMail 1.5.4
()
| 295 | * @since JavaMail 1.5.4 |
| 296 | */ |
| 297 | public boolean hasResponse() { |
| 298 | /* |
| 299 | * XXX - Really should peek ahead in the buffer to see |
| 300 | * if there's a *complete* response available, but if there |
| 301 | * isn't who's going to read more data into the buffer |
| 302 | * until there is? |
| 303 | */ |
| 304 | try { |
| 305 | return input.available() > 0; |
| 306 | } catch (IOException ex) { |
| 307 | } |
| 308 | return false; |
| 309 | } |
| 310 | |
| 311 | /** |
| 312 | * Return a buffer to be used to read a response. |