org.apache.http.impl.nio.reactor
Class SessionInputBuffer

java.lang.Object
  extended by org.apache.http.nio.util.ExpandableBuffer
      extended by org.apache.http.impl.nio.reactor.SessionInputBuffer

public class SessionInputBuffer
extends ExpandableBuffer


Field Summary
 
Fields inherited from class org.apache.http.nio.util.ExpandableBuffer
buffer, INPUT_MODE, OUTPUT_MODE
 
Constructor Summary
SessionInputBuffer(int buffersize, int linebuffersize)
           
SessionInputBuffer(int buffersize, int linebuffersize, ByteBufferAllocator allocator)
           
 
Method Summary
 int fill(java.nio.channels.ReadableByteChannel channel)
           
 int read()
           
 int read(java.nio.ByteBuffer dst)
           
 int read(java.nio.ByteBuffer dst, int maxLen)
           
 java.lang.String readLine(boolean endOfStream)
           
 boolean readLine(CharArrayBuffer linebuffer, boolean endOfStream)
           
 void reset(HttpParams params)
           
 
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

SessionInputBuffer

public SessionInputBuffer(int buffersize,
                          int linebuffersize,
                          ByteBufferAllocator allocator)

SessionInputBuffer

public SessionInputBuffer(int buffersize,
                          int linebuffersize)
Method Detail

reset

public void reset(HttpParams params)

fill

public int fill(java.nio.channels.ReadableByteChannel channel)
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read()

read

public int read(java.nio.ByteBuffer dst,
                int maxLen)

read

public int read(java.nio.ByteBuffer dst)

readLine

public boolean readLine(CharArrayBuffer linebuffer,
                        boolean endOfStream)
                 throws java.nio.charset.CharacterCodingException
Throws:
java.nio.charset.CharacterCodingException

readLine

public java.lang.String readLine(boolean endOfStream)
                          throws java.nio.charset.CharacterCodingException
Throws:
java.nio.charset.CharacterCodingException


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