public static Result ofStream(Http.Request request, InputStream stream) {
    """
	Returns the stream as a result considering "Range" header. If the header is present and it is
	satisfiable, then a Result containing just the requested part will be returned. If the header
	is not present or is unsatisfiable, then a regular Result will be returned.
	
	@param request the request from which to retrieve the range header.
	@param stream the content stream
	@return range result if "Range" header is present and regular result if not
    """
    return JavaRangeResult.ofStream(stream, rangeHeader(request), null, Optional.empty());
  }
public static Result ofStream(Http.Request request, InputStream stream) {
    return JavaRangeResult.ofStream(stream, rangeHeader(request), null, Optional.empty());
  }
public static Result ofStream ( Http . Request request , InputStream stream ) { return JavaRangeResult . ofStream ( stream , rangeHeader ( request ) , null , Optional . empty ( ) ) ; }
Returns the stream as a result considering "Range" header. If the header is present and it is
satisfiable, then a Result containing just the requested part will be returned. If the header
is not present or is unsatisfiable, then a regular Result will be returned.

@param request the request from which to retrieve the range header.
@param stream the content stream
@return range result if "Range" header is present and regular result if not
Returns the stream as a result considering Range header . If the header is present and it is satisfiable then a Result containing just the requested part will be returned . If the header is not present or is unsatisfiable then a regular Result will be returned .