Commit a5219598 authored by Sergi Rodríguez's avatar Sergi Rodríguez
Browse files

clarification for dstLength when chunked encoding

parent 30decc92
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -19,12 +19,14 @@ public interface DataReceived extends Event
    /**
     * Copy the received data in a buffer. Data are handled as a stream, and are received upon applet request.
     * It is not possible to move backward in the data by using the <code>srcOffset>/code> parameter.
     * This is a non-blocking methid.
     * This is a non-blocking method.
     *
     * @param srcOffset the offset of the first byte to copy in the received data
     * @param dstBuffer a reference to the destination buffer
     * @param dstOffset the position in the destination buffer
     * @param dstLength the data length to be copied
     * @param dstLength the maximum number of bytes to be copied into dstBuffer, 
     * If fewer bytes are currently available (e.g. in the case of chunked transfer encoding),
     * the method will copy only the bytes available and return the actual number of bytes copied.
     * @return <code>dstOffset+length of the copied value</code>
     *
     * @exception  NullPointerException if <code>dstBuffer</code> is <code>null</code>