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

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

public class SessionOutputBufferImpl
extends ExpandableBuffer
implements SessionOutputBuffer


Field Summary
 
Fields inherited from class org.apache.http.nio.util.ExpandableBuffer
buffer, INPUT_MODE, OUTPUT_MODE
 
Constructor Summary
SessionOutputBufferImpl(int buffersize, int linebuffersize, ByteBufferAllocator allocator, HttpParams params)
           
SessionOutputBufferImpl(int buffersize, int linebuffersize, HttpParams params)
           
 
Method Summary
 int flush(java.nio.channels.WritableByteChannel channel)
           
 void reset(HttpParams params)
           
 void write(java.nio.ByteBuffer src)
           
 void write(java.nio.channels.ReadableByteChannel src)
           
 void writeLine(CharArrayBuffer linebuffer)
           
 void writeLine(java.lang.String s)
           
 
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.SessionOutputBuffer
hasData, length
 

Constructor Detail

SessionOutputBufferImpl

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

SessionOutputBufferImpl

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

reset

public void reset(HttpParams params)

flush

public int flush(java.nio.channels.WritableByteChannel channel)
          throws java.io.IOException
Specified by:
flush in interface SessionOutputBuffer
Throws:
java.io.IOException

write

public void write(java.nio.ByteBuffer src)
Specified by:
write in interface SessionOutputBuffer

write

public void write(java.nio.channels.ReadableByteChannel src)
           throws java.io.IOException
Specified by:
write in interface SessionOutputBuffer
Throws:
java.io.IOException

writeLine

public void writeLine(CharArrayBuffer linebuffer)
               throws java.nio.charset.CharacterCodingException
Specified by:
writeLine in interface SessionOutputBuffer
Throws:
java.nio.charset.CharacterCodingException

writeLine

public void writeLine(java.lang.String s)
               throws java.io.IOException
Specified by:
writeLine in interface SessionOutputBuffer
Throws:
java.io.IOException


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