org.apache.http.nio.util
Class SharedInputBuffer
java.lang.Object
org.apache.http.nio.util.ExpandableBuffer
org.apache.http.nio.util.SharedInputBuffer
- All Implemented Interfaces:
- ContentInputBuffer
public class SharedInputBuffer
- extends ExpandableBuffer
- implements ContentInputBuffer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SharedInputBuffer
public SharedInputBuffer(int buffersize,
IOControl ioctrl,
ByteBufferAllocator allocator)
reset
public void reset()
- Specified by:
reset
in interface ContentInputBuffer
consumeContent
public int consumeContent(ContentDecoder decoder)
throws java.io.IOException
- Specified by:
consumeContent
in interface ContentInputBuffer
- Throws:
java.io.IOException
waitForData
protected void waitForData()
throws java.io.IOException
- Throws:
java.io.IOException
shutdown
public void shutdown()
isShutdown
protected boolean isShutdown()
isEndOfStream
protected boolean isEndOfStream()
read
public int read()
throws java.io.IOException
- Specified by:
read
in interface ContentInputBuffer
- Throws:
java.io.IOException
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Specified by:
read
in interface ContentInputBuffer
- Throws:
java.io.IOException
read
public int read(byte[] b)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.