org.apache.http.nio.util
Class SimpleInputBuffer

java.lang.Object
  extended byorg.apache.http.nio.util.ExpandableBuffer
      extended byorg.apache.http.nio.util.SimpleInputBuffer
All Implemented Interfaces:
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)
           
 
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
capacity, clear, ensureCapacity, expand, getMode, hasData, length, setInputMode, setOutputMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleInputBuffer

public SimpleInputBuffer(int buffersize)
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-2007 Apache Software Foundation. All Rights Reserved.