org.apache.coyote.memory

Class MemoryProtocolHandler.ByteChunkInputBuffer

Enclosing Class:
MemoryProtocolHandler
Implemented Interfaces:
InputBuffer

protected class MemoryProtocolHandler.ByteChunkInputBuffer
extends java.lang.Object
implements InputBuffer

Field Summary

protected ByteChunk
input

Constructor Summary

ByteChunkInputBuffer(ByteChunk input)

Method Summary

int
doRead(ByteChunk chunk, Request request)
Return from the input stream.

Field Details

input

protected ByteChunk input

Constructor Details

ByteChunkInputBuffer

public ByteChunkInputBuffer(ByteChunk input)

Method Details

doRead

public int doRead(ByteChunk chunk,
                  Request request)
            throws IOException
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


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.