org.apache.http.nio.util
Class SharedOutputBuffer
java.lang.Object
org.apache.http.nio.util.ExpandableBuffer
org.apache.http.nio.util.SharedOutputBuffer
- All Implemented Interfaces:
- BufferInfo, ContentOutputBuffer
public class SharedOutputBuffer
- extends ExpandableBuffer
- implements ContentOutputBuffer
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 |
SharedOutputBuffer
public SharedOutputBuffer(int buffersize,
IOControl ioctrl,
ByteBufferAllocator allocator)
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
close
public void close()
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-2008 Apache Software Foundation. All Rights Reserved.