MCPcopy Create free account
hub / github.com/M66B/FairEmail / hasResponse

Method hasResponse

app/src/main/java/com/sun/mail/iap/Protocol.java:297–309  ·  view source on GitHub ↗

Is another response available in our buffer? @return true if another response is in the buffer @since JavaMail 1.5.4

()

Source from the content-addressed store, hash-verified

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.

Callers 1

handleIdleMethod · 0.80

Calls 1

availableMethod · 0.45

Tested by

no test coverage detected