public class FileContent extends HttpContent
content| Constructor and Description |
|---|
FileContent(ContentType contentType,
java.io.File file) |
FileContent(java.io.File file) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
compute() |
int |
getContentLength() |
bytes, bytes, file, form, form, getAsBytes, getAsString, getAsString, getContentType, string, stringpublic FileContent(@Nonnull
java.io.File file)
public FileContent(@Nonnull
ContentType contentType,
@Nonnull
java.io.File file)
public int getContentLength()
getContentLength in class HttpContentprotected byte[] compute()
throws java.io.IOException
compute in class HttpContentjava.io.IOException - If an I/O error occurs