org.apache.coyote.memory
Class MemoryProtocolHandler.ByteChunkInputBuffer
java.lang.Object
org.apache.coyote.memory.MemoryProtocolHandler.ByteChunkInputBuffer
- All Implemented Interfaces:
- InputBuffer
- Enclosing class:
- MemoryProtocolHandler
protected class MemoryProtocolHandler.ByteChunkInputBuffer
- extends Object
- implements InputBuffer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
input
protected ByteChunk input
MemoryProtocolHandler.ByteChunkInputBuffer
public MemoryProtocolHandler.ByteChunkInputBuffer(ByteChunk input)
doRead
public int doRead(ByteChunk chunk,
Request request)
throws IOException
- Description copied from interface:
InputBuffer
- Return from the input stream.
IMPORTANT: the current model assumes that the protocol will 'own' the
buffer and return a pointer to it in ByteChunk ( i.e. the param will
have chunk.getBytes()==null before call, and the result after the call ).
- Specified by:
doRead in interface InputBuffer
- Throws:
IOException
Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.