public int available() throws IOException { if (!this.closed && this.in.isDataAvailable(10)) { return 1; } else { return 0; } }
public boolean isDataAvailable(int timeout) throws IOException { return this.in.isDataAvailable(timeout); }
public boolean isStale() { assertOpen(); try { this.inbuffer.isDataAvailable(1); return false; } catch (IOException ex) { return true; } }
public boolean isResponseAvailable(int timeout) throws IOException { assertOpen(); return this.inbuffer.isDataAvailable(timeout); }
public boolean isStale() { if (!isOpen()) { return true; } try { // BEGIN android-added // don't reuse connections when the socket input stream is exhausted if (inbuffer instanceof SocketInputBuffer) { return ((SocketInputBuffer) inbuffer).isStale(); } // END android-added this.inbuffer.isDataAvailable(1); return false; } catch (IOException ex) { return true; } }
public int available() throws IOException { if (!this.closed && this.in.isDataAvailable(10)) { return 1; } else { return 0; } }
public boolean isStale() { try { this.inbuffer.isDataAvailable(1); return false; } catch (IOException ex) { return true; } }
public int available() throws IOException { if (!this.closed && this.in.isDataAvailable(10)) { return 1; } else { return 0; } }
public int available() throws IOException { if (!this.closed && this.in.isDataAvailable(10)) { return 1; } else { return 0; } }
@Override public boolean isDataAvailable(final int timeout) throws IOException { return this.in.isDataAvailable(timeout); }
public boolean isResponseAvailable(final int timeout) throws IOException { assertOpen(); try { return this.inbuffer.isDataAvailable(timeout); } catch (final SocketTimeoutException ex) { return false; } }
public boolean isStale() { assertOpen(); try { this.inbuffer.isDataAvailable(1); return false; } catch (IOException ex) { return true; } }
public boolean isStale() { assertOpen(); try { this.inbuffer.isDataAvailable(1); return false; } catch (IOException ex) { return true; } }
public boolean isStale() { assertOpen(); try { this.inbuffer.isDataAvailable(1); return false; } catch (IOException ex) { return true; } }
public boolean isResponseAvailable(final int timeout) throws IOException { assertOpen(); try { return this.inbuffer.isDataAvailable(timeout); } catch (final SocketTimeoutException ex) { return false; } }
public boolean isResponseAvailable(final int timeout) throws IOException { assertOpen(); try { return this.inbuffer.isDataAvailable(timeout); } catch (final SocketTimeoutException ex) { return false; } }
public boolean isStale() { assertOpen(); try { this.inbuffer.isDataAvailable(1); return false; } catch (IOException ex) { return true; } }
public boolean isResponseAvailable(final int timeout) throws IOException { assertOpen(); try { return this.inbuffer.isDataAvailable(timeout); } catch (final SocketTimeoutException ex) { return false; } }
@Override public boolean isResponseAvailable(final int timeout) throws IOException { assertOpen(); try { return this.inbuffer.isDataAvailable(timeout); } catch (final SocketTimeoutException ex) { return false; } }
public boolean isResponseAvailable(int timeout) throws IOException { assertOpen(); return this.inbuffer.isDataAvailable(timeout); }