org.apache.http.nio.util
Class SimpleOutputBuffer
java.lang.Object
org.apache.http.nio.util.ExpandableBuffer
org.apache.http.nio.util.SimpleOutputBuffer
- All Implemented Interfaces:
- ContentOutputBuffer
- public class SimpleOutputBuffer
- extends ExpandableBuffer
- implements ContentOutputBuffer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleOutputBuffer
public SimpleOutputBuffer(int buffersize)
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-2007 Apache Software Foundation. All Rights Reserved.