Class InputStreamPart
- java.lang.Object
-
- org.asynchttpclient.request.body.multipart.PartBase
-
- org.asynchttpclient.request.body.multipart.FileLikePart
-
- org.asynchttpclient.request.body.multipart.InputStreamPart
-
- All Implemented Interfaces:
Part
public class InputStreamPart extends FileLikePart
-
-
Constructor Summary
Constructors Constructor Description InputStreamPart(String name, InputStream inputStream, String fileName)
InputStreamPart(String name, InputStream inputStream, String fileName, long contentLength)
InputStreamPart(String name, InputStream inputStream, String fileName, long contentLength, String contentType)
InputStreamPart(String name, InputStream inputStream, String fileName, long contentLength, String contentType, Charset charset)
InputStreamPart(String name, InputStream inputStream, String fileName, long contentLength, String contentType, Charset charset, String contentId)
InputStreamPart(String name, InputStream inputStream, String fileName, long contentLength, String contentType, Charset charset, String contentId, String transferEncoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getContentLength()
InputStream
getInputStream()
-
Methods inherited from class org.asynchttpclient.request.body.multipart.FileLikePart
getFileName, toString
-
Methods inherited from class org.asynchttpclient.request.body.multipart.PartBase
addCustomHeader, getCharset, getContentId, getContentType, getCustomHeaders, getDispositionType, getName, getTransferEncoding, setCustomHeaders, setDispositionType
-
-
-
-
Constructor Detail
-
InputStreamPart
public InputStreamPart(String name, InputStream inputStream, String fileName)
-
InputStreamPart
public InputStreamPart(String name, InputStream inputStream, String fileName, long contentLength)
-
InputStreamPart
public InputStreamPart(String name, InputStream inputStream, String fileName, long contentLength, String contentType)
-
InputStreamPart
public InputStreamPart(String name, InputStream inputStream, String fileName, long contentLength, String contentType, Charset charset)
-
InputStreamPart
public InputStreamPart(String name, InputStream inputStream, String fileName, long contentLength, String contentType, Charset charset, String contentId)
-
-
Method Detail
-
getInputStream
public InputStream getInputStream()
-
getContentLength
public long getContentLength()
-
-