org.apache.http.nio.util
Class SimpleOutputBuffer

java.lang.Object
  extended by org.apache.http.nio.util.ExpandableBuffer
      extended by org.apache.http.nio.util.SimpleOutputBuffer
All Implemented Interfaces:
ContentOutputBuffer

public class SimpleOutputBuffer
extends ExpandableBuffer
implements ContentOutputBuffer


Field Summary
 
Fields inherited from class org.apache.http.nio.util.ExpandableBuffer
buffer, INPUT_MODE, OUTPUT_MODE
 
Constructor Summary
SimpleOutputBuffer(int buffersize, ByteBufferAllocator allocator)
           
 
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

SimpleOutputBuffer

public SimpleOutputBuffer(int buffersize,
                          ByteBufferAllocator allocator)
Method Detail

produceContent

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

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

reset

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

flush

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

writeCompleted

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

shutdown

public void shutdown()


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