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

All Implemented Interfaces:
    ContentInputBuffer, BufferInfo

Basic implementation of the ContentInputBuffer interface.

This class is not thread safe.

Fields inherited from org.apache.http.nio.util.ExpandableBuffer:
INPUT_MODE,  OUTPUT_MODE,  buffer
Constructor:
 public SimpleInputBuffer(int buffersize,
    ByteBufferAllocator allocator) 
Method from org.apache.http.nio.util.SimpleInputBuffer Summary:
consumeContent,   isEndOfStream,   read,   read,   read,   reset,   shutdown
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.SimpleInputBuffer Detail:
 public int consumeContent(ContentDecoder decoder) throws IOException 
 public boolean isEndOfStream() 
 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()