public class HttpClient5BodyEntity
extends org.apache.hc.core5.http.io.entity.AbstractHttpEntity
HttpBody
转换为HttpEntity
对象Constructor and Description |
---|
HttpClient5BodyEntity(String contentType,
String contentEncoding,
boolean chunked,
HttpBody body)
构造
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
InputStream |
getContent() |
long |
getContentLength() |
boolean |
isStreaming() |
void |
writeTo(OutputStream outStream) |
public void writeTo(OutputStream outStream)
writeTo
in interface org.apache.hc.core5.http.HttpEntity
writeTo
in class org.apache.hc.core5.http.io.entity.AbstractHttpEntity
public InputStream getContent()
public boolean isStreaming()
public void close()
public long getContentLength()
Copyright © 2025. All rights reserved.