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