final class PathBody
extends org.apache.http.entity.mime.content.AbstractContentBody
MultipartEntityBuilder
Modifier and Type | Field and Description |
---|---|
private java.nio.file.Path |
path |
Constructor and Description |
---|
PathBody(java.nio.file.Path path) |
PathBody(java.nio.file.Path path,
java.lang.String contentType) |
Modifier and Type | Method and Description |
---|---|
long |
getContentLength() |
java.lang.String |
getFilename() |
java.lang.String |
getTransferEncoding() |
void |
writeTo(java.io.OutputStream outstream) |