common/src/main/java/HTTPClient/Codecs.java
/**
     * Searches for the next CRLF in an array.
     *
     * @param  arr the byte array to search.
     * @param  off the offset at which to start the search.
     * @return the position of the CR or (arr.length-2) if not found
     */
Searches for the next CRLF in an array.
@param  arr the byte array to search.
@param  off the offset at which to start the search.
@return the position of the CR or (arr.length-2) if not found
Searches for the next CRLF in an array . @param arr the byte array to search . @param off the offset at which to start the search . @return the position of the CR or ( arr . length - 2 ) if not found
private final static int findEOL(byte[] arr, int off)
    {
	while (off < arr.length-1  &&
	       !(arr[off++] == '\r'  &&  arr[off] == '\n'));
	return off-1;
    }
private final static int findEOL ( byte [ ] arr , int off ) { while ( off < arr . length - 1 && ! ( arr [ off ++ ] == '\r' && arr [ off ] == '\n' ) ) ; return off - 1 ; }
Searches for the next CRLF in an array.
Searches for the next CRLF in an array .