org.apache.http.nio.util
Class SimpleInputBuffer

java.lang.Object
  extended by org.apache.http.nio.util.ExpandableBuffer
      extended by org.apache.http.nio.util.SimpleInputBuffer
All Implemented Interfaces:
BufferInfo, ContentInputBuffer

public class SimpleInputBuffer
extends ExpandableBuffer
implements ContentInputBuffer


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

Constructor Detail

SimpleInputBuffer

public SimpleInputBuffer(int buffersize,
                         ByteBufferAllocator allocator)
Method Detail

reset

public void reset()
Specified by:
reset in interface ContentInputBuffer

consumeContent

public int consumeContent(ContentDecoder decoder)
                   throws java.io.IOException
Specified by:
consumeContent in interface ContentInputBuffer
Throws:
java.io.IOException

isEndOfStream

public boolean isEndOfStream()

read

public int read()
         throws java.io.IOException
Specified by:
read in interface ContentInputBuffer
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Specified by:
read in interface ContentInputBuffer
Throws:
java.io.IOException

read

public int read(byte[] b)
         throws java.io.IOException
Throws:
java.io.IOException

shutdown

public void shutdown()


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.