org.apache.http.nio.util
Class ExpandableBuffer

java.lang.Object
  extended byorg.apache.http.nio.util.ExpandableBuffer
Direct Known Subclasses:
SessionInputBuffer, SessionOutputBuffer, SharedInputBuffer, SharedOutputBuffer, SimpleInputBuffer, SimpleOutputBuffer

public class ExpandableBuffer
extends java.lang.Object


Field Summary
protected  java.nio.ByteBuffer buffer
           
static int INPUT_MODE
           
static int OUTPUT_MODE
           
 
Constructor Summary
ExpandableBuffer(int buffersize)
           
 
Method Summary
 int capacity()
           
protected  void clear()
           
protected  void ensureCapacity(int requiredCapacity)
           
protected  void expand()
           
protected  int getMode()
           
 boolean hasData()
           
 int length()
           
protected  void setInputMode()
           
protected  void setOutputMode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INPUT_MODE

public static final int INPUT_MODE
See Also:
Constant Field Values

OUTPUT_MODE

public static final int OUTPUT_MODE
See Also:
Constant Field Values

buffer

protected java.nio.ByteBuffer buffer
Constructor Detail

ExpandableBuffer

public ExpandableBuffer(int buffersize)
Method Detail

getMode

protected int getMode()

setOutputMode

protected void setOutputMode()

setInputMode

protected void setInputMode()

expand

protected void expand()

ensureCapacity

protected void ensureCapacity(int requiredCapacity)

capacity

public int capacity()

hasData

public boolean hasData()

length

public int length()

clear

protected void clear()


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