Class SocketInputBuffer

java.lang.Object
org.apache.http.impl.io.AbstractSessionInputBuffer
org.apache.http.impl.io.SocketInputBuffer
All Implemented Interfaces:
SessionInputBuffer

public class SocketInputBuffer
extends AbstractSessionInputBuffer
Socket bound session input buffer.
Since:
4.0
Version:
$Revision: 560358 $
Author:
Oleg Kalnichevski
  • Constructor Details

  • Method Details

    • isDataAvailable

      public boolean isDataAvailable​(int timeout) throws IOException
      Throws:
      IOException
    • isStale

      public boolean isStale() throws IOException
      Returns true if the connection is probably functional. It's insufficient to rely on isDataAvailable() returning normally; that approach cannot distinguish between an exhausted stream and a stream with zero bytes buffered.
      Throws:
      IOException