public class ByteArrayContent extends HttpContent
| Constructor and Description |
|---|
ByteArrayContent(byte[] content) |
ByteArrayContent(byte[] content,
int start,
int length) |
ByteArrayContent(ContentType contentType,
byte[] content) |
ByteArrayContent(ContentType contentType,
byte[] content,
int start,
int length) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
compute() |
int |
getContentLength() |
bytes, bytes, file, form, form, getAsBytes, getAsString, getAsString, getContentType, string, stringpublic ByteArrayContent(@Nonnull
byte[] content)
public ByteArrayContent(@Nonnull
byte[] content,
int start,
int length)
public ByteArrayContent(@Nonnull
ContentType contentType,
@Nonnull
byte[] content)
public ByteArrayContent(@Nonnull
ContentType contentType,
@Nonnull
byte[] content,
int start,
int length)
public int getContentLength()
getContentLength in class HttpContentprotected byte[] compute()
compute in class HttpContent