org.apache.http.nio.util
Class SharedOutputBuffer

java.lang.Object
  extended byorg.apache.http.nio.util.ExpandableBuffer
      extended byorg.apache.http.nio.util.SharedOutputBuffer
All Implemented Interfaces:
ContentOutputBuffer

public class SharedOutputBuffer
extends ExpandableBuffer
implements ContentOutputBuffer


Field Summary
 
Fields inherited from class org.apache.http.nio.util.ExpandableBuffer
buffer, INPUT_MODE, OUTPUT_MODE
 
Constructor Summary
SharedOutputBuffer(int buffersize, IOControl ioctrl)
           
 
Method Summary
 void flush()
           
 int produceContent(ContentEncoder encoder)
           
 void reset()
           
 void shutdown()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 void writeCompleted()
           
 
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

SharedOutputBuffer

public SharedOutputBuffer(int buffersize,
                          IOControl ioctrl)
Method Detail

reset

public void reset()
Specified by:
reset in interface ContentOutputBuffer

produceContent

public int produceContent(ContentEncoder encoder)
                   throws java.io.IOException
Specified by:
produceContent in interface ContentOutputBuffer
Throws:
java.io.IOException

shutdown

public void shutdown()

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Specified by:
write in interface ContentOutputBuffer
Throws:
java.io.IOException

write

public void write(byte[] b)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Specified by:
write in interface ContentOutputBuffer
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface ContentOutputBuffer
Throws:
java.io.IOException

writeCompleted

public void writeCompleted()
                    throws java.io.IOException
Specified by:
writeCompleted in interface ContentOutputBuffer
Throws:
java.io.IOException


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