Fill the passed buffer with data from this endpoint. The bytes are appended to any data already in the buffer by writing from the buffers limit up to it's capacity. The limit is updated to include the filled bytes.
@param buffer The buffer to fill. The position and limit are modified during the fill. After theoperation, the position is unchanged and the limit is increased to reflect the new data filled.
@return an int value indicating the number of bytesfilled or -1 if EOF is read or the input is shutdown.
@throws EofException If the endpoint is closed.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.