Interface BodySupplier


public interface BodySupplier
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    the length of the body or -1 if the length is unknown.
    @NotNull InputStream
    InputStream containing the body.
  • Method Details

    • length

      int length()
      the length of the body or -1 if the length is unknown.
      Returns:
      length of this body or -1
    • stream

      @NotNull @NotNull InputStream stream()
      InputStream containing the body. The returned stream must be closed by the method caller.
      Returns:
      InputStream