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

java.lang.Object
  extended by org.apache.http.nio.util.ExpandableBuffer
      extended by org.apache.http.impl.nio.reactor.SessionInputBufferImpl
All Implemented Interfaces:
SessionInputBuffer, BufferInfo

public class SessionInputBufferImpl
extends ExpandableBuffer
implements SessionInputBuffer


Field Summary
 
Fields inherited from class org.apache.http.nio.util.ExpandableBuffer
buffer, INPUT_MODE, OUTPUT_MODE
 
Constructor Summary
SessionInputBufferImpl(int buffersize, int linebuffersize, ByteBufferAllocator allocator, HttpParams params)
           
SessionInputBufferImpl(int buffersize, int linebuffersize, HttpParams params)
           
 
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)
           
 int read(java.nio.channels.WritableByteChannel dst)
           
 int read(java.nio.channels.WritableByteChannel dst, int maxLen)
           
 java.lang.String readLine(boolean endOfStream)
           
 boolean readLine(CharArrayBuffer linebuffer, boolean endOfStream)
           
 
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
 
Methods inherited from interface org.apache.http.nio.reactor.SessionInputBuffer
hasData, length
 

Constructor Detail

SessionInputBufferImpl

public SessionInputBufferImpl(int buffersize,
                              int linebuffersize,
                              ByteBufferAllocator allocator,
                              HttpParams params)

SessionInputBufferImpl

public SessionInputBufferImpl(int buffersize,
                              int linebuffersize,
                              HttpParams params)
Method Detail

fill

public int fill(java.nio.channels.ReadableByteChannel channel)
         throws java.io.IOException
Specified by:
fill in interface SessionInputBuffer
Throws:
java.io.IOException

read

public int read()
Specified by:
read in interface SessionInputBuffer

read

public int read(java.nio.ByteBuffer dst,
                int maxLen)
Specified by:
read in interface SessionInputBuffer

read

public int read(java.nio.ByteBuffer dst)
Specified by:
read in interface SessionInputBuffer

read

public int read(java.nio.channels.WritableByteChannel dst,
                int maxLen)
         throws java.io.IOException
Specified by:
read in interface SessionInputBuffer
Throws:
java.io.IOException

read

public int read(java.nio.channels.WritableByteChannel dst)
         throws java.io.IOException
Specified by:
read in interface SessionInputBuffer
Throws:
java.io.IOException

readLine

public boolean readLine(CharArrayBuffer linebuffer,
                        boolean endOfStream)
                 throws java.nio.charset.CharacterCodingException
Specified by:
readLine in interface SessionInputBuffer
Throws:
java.nio.charset.CharacterCodingException

readLine

public java.lang.String readLine(boolean endOfStream)
                          throws java.nio.charset.CharacterCodingException
Specified by:
readLine in interface SessionInputBuffer
Throws:
java.nio.charset.CharacterCodingException


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