public class InputStreamRequestBody extends AbstractRequestBody<InputStream>
构造器和说明 |
---|
InputStreamRequestBody()
构造函数,ContentType 为 application/octet-stream
|
InputStreamRequestBody(ContentType contentType,
InputStream content)
构造函数
|
InputStreamRequestBody(ContentType contentType,
InputStream content,
long contentLength)
构造函数
|
InputStreamRequestBody(ContentType contentType,
InputStream content,
long contentLength,
Charset charset)
构造函数,ContentType 为 application/octet-stream
|
InputStreamRequestBody(InputStream content)
构造函数,ContentType 为 application/octet-stream
|
InputStreamRequestBody(InputStream content,
Charset charset)
构造函数,ContentType 为 application/octet-stream
|
InputStreamRequestBody(InputStream content,
long contentLength)
构造函数,ContentType 为 application/octet-stream
|
InputStreamRequestBody(InputStream content,
long contentLength,
Charset charset)
构造函数,ContentType 为 application/octet-stream
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
setContentLength(InputStream content) |
getContent, getContentLength, getContentType, setContent, setContentLength, setContentType
public InputStreamRequestBody()
public InputStreamRequestBody(InputStream content)
content
- 请求流public InputStreamRequestBody(InputStream content, long contentLength)
content
- 请求流contentLength
- 请求体大小public InputStreamRequestBody(InputStream content, Charset charset)
content
- 请求流charset
- 请求体字符集public InputStreamRequestBody(InputStream content, long contentLength, Charset charset)
content
- 请求流contentLength
- 请求体大小charset
- 请求体字符集public InputStreamRequestBody(ContentType contentType, InputStream content)
contentType
- ContentTypecontent
- 请求流public InputStreamRequestBody(ContentType contentType, InputStream content, long contentLength)
contentType
- ContentTypecontent
- 请求流contentLength
- 请求体大小public InputStreamRequestBody(ContentType contentType, InputStream content, long contentLength, Charset charset)
contentType
- ContentTypecontent
- 请求流contentLength
- 请求体大小charset
- 请求体字符集protected void setContentLength(InputStream content)
Copyright © 2023 buession.com Inc.. All rights reserved.