core/play/src/main/java/play/mvc/RangeResults.java
@Deprecated
  public static Result ofStream(InputStream stream, long contentLength) {
    return ofStream(Http.Context.current().request(), stream, contentLength);
  }
@Deprecated
  public static Result ofStream(InputStream stream, long contentLength) {
    return ofStream(Http.Context.current().request(), stream, contentLength);
  }
@ Deprecated public static Result ofStream ( InputStream stream , long contentLength ) { return ofStream ( Http . Context . current ( ) . request ( ) , stream , contentLength ) ; }
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 stream the content stream
@param contentLength the entity length
@return range result if "Range" header is present and regular result if not
@deprecated Deprecated as of 2.7.0. Use {@link #ofStream(Http.Request, InputStream, long)}
instead.
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 .