public class ByteArrayEntity extends Object implements HttpEntity
Description:
| 构造器和说明 |
|---|
ByteArrayEntity(byte[] content) |
ByteArrayEntity(byte[] content,
ContentType contentType) |
ByteArrayEntity(byte[] content,
int off,
int len,
ContentType contentType) |
| 限定符和类型 | 方法和说明 |
|---|---|
InputStream |
getContent() |
long |
getContentLength() |
ContentType |
getContentType() |
void |
writeTo(OutputStream outstream) |
public ByteArrayEntity(byte[] content)
public ByteArrayEntity(byte[] content,
ContentType contentType)
public ByteArrayEntity(byte[] content,
int off,
int len,
ContentType contentType)
public ContentType getContentType()
getContentType 在接口中 HttpEntitypublic long getContentLength()
getContentLength 在接口中 HttpEntitypublic InputStream getContent() throws IOException
getContent 在接口中 HttpEntityIOExceptionpublic void writeTo(OutputStream outstream) throws IOException
writeTo 在接口中 HttpEntityIOExceptionCopyright © 2019. All rights reserved.