Save This Page
Home » HttpComponents-Core-4.0.1 » org.apache.http.nio.util » [javadoc | source]
org.apache.http.nio.util
public class: SharedInputBuffer [javadoc | source]
java.lang.Object
   org.apache.http.nio.util.ExpandableBuffer
      org.apache.http.nio.util.SharedInputBuffer

All Implemented Interfaces:
    ContentInputBuffer, BufferInfo

Implementation of the ContentInputBuffer interface that can be shared by multiple threads, usually the I/O dispatch of an I/O reactor and a worker thread.

Please note this class is thread safe only when used though the ContentInputBuffer interface.

Fields inherited from org.apache.http.nio.util.ExpandableBuffer:
INPUT_MODE,  OUTPUT_MODE,  buffer
Constructor:
 public SharedInputBuffer(int buffersize,
    IOControl ioctrl,
    ByteBufferAllocator allocator) 
Method from org.apache.http.nio.util.SharedInputBuffer Summary:
close,   consumeContent,   isEndOfStream,   isShutdown,   read,   read,   read,   reset,   shutdown,   waitForData
Methods from org.apache.http.nio.util.ExpandableBuffer:
available,   capacity,   clear,   ensureCapacity,   expand,   getMode,   hasData,   length,   setInputMode,   setOutputMode,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.http.nio.util.SharedInputBuffer Detail:
 public  void close() 
 public int consumeContent(ContentDecoder decoder) throws IOException 
 protected boolean isEndOfStream() 
 protected boolean isShutdown() 
 public int read() throws IOException 
 public int read(byte[] b) throws IOException 
 public int read(byte[] b,
    int off,
    int len) throws IOException 
 public  void reset() 
 public  void shutdown() 
 protected  void waitForData() throws IOException