src/org/jnetpcap/nio/JBufferInputStream.java
private int max(int len) {
		final int available = end - position;
		final int max = (len > available) ? available : len;

		return max;
	}
/**
	 * Calculate the maximum length that can be read out of the buffer based on
	 * the length requested. If the requested length is greater then what can be
	 * read out of the buffer, then this method returns just the available length.
	 * 
	 * @param len
	 *          checks if len bytes are aviable for reading
	 * @return number of bytes available for reading, upto the maximum of the
	 *         length requested
	 */
Calculate the maximum length that can be read out of the buffer based on
the length requested. If the requested length is greater then what can be
read out of the buffer, then this method returns just the available length.

@param len
checks if len bytes are aviable for reading
@return number of bytes available for reading, upto the maximum of the
length requested
Calculate the maximum length that can be read out of the buffer based on the length requested . If the requested length is greater then what can be read out of the buffer then this method returns just the available length . @param len checks if len bytes are aviable for reading @return number of bytes available for reading upto the maximum of the length requested
private int max(int len) {
		final int available = end - position;
		final int max = (len > available) ? available : len;
		return max;
	}
private int max ( int len ) { final int available = end - position ; final int max = ( len > available ) ? available : len ; return max ; }
Calculate the maximum length that can be read out of the buffer based on
 the length requested.
Calculate the maximum length that can be read out of the buffer based on the length requested .