Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » coyote » [javadoc | source]
org.apache.coyote
public interface: InputBuffer [javadoc | source]

All Known Implementing Classes:
    InputFilter, InternalInputBuffer, ByteChunkInputBuffer, SocketInputBuffer, VoidInputFilter, InternalAprInputBuffer, InputStreamInputBuffer, SocketInputBuffer, IdentityInputFilter, BufferedInputFilter, SavedRequestInputFilter, JkInputStream, ChunkedInputFilter, SocketInputBuffer

Input buffer. This class is used only in the protocol implementation. All reading from tomcat ( or adapter ) should be done using Request.doRead().
Method from org.apache.coyote.InputBuffer Summary:
doRead
Method from org.apache.coyote.InputBuffer Detail:
 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 ).