org.apache.http.impl.nio.reactor
Class SessionInputBufferImpl
java.lang.Object
org.apache.http.nio.util.ExpandableBuffer
org.apache.http.impl.nio.reactor.SessionInputBufferImpl
- All Implemented Interfaces:
- SessionInputBuffer, BufferInfo
public class SessionInputBufferImpl
- extends ExpandableBuffer
- implements SessionInputBuffer
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 |
SessionInputBufferImpl
public SessionInputBufferImpl(int buffersize,
int linebuffersize,
ByteBufferAllocator allocator,
HttpParams params)
SessionInputBufferImpl
public SessionInputBufferImpl(int buffersize,
int linebuffersize,
HttpParams params)
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.