public class InputStreamRequestBody
extends RequestBody
Constructor and Description |
---|
InputStreamRequestBody(MediaType mediaType,
java.io.InputStream inputStream,
ProgressReportingSource.ProgressListener listener) |
Modifier and Type | Method and Description |
---|---|
long |
contentLength() |
MediaType |
contentType() |
protected void |
finalize() |
void |
writeTo(BufferedSink sink) |
public InputStreamRequestBody(MediaType mediaType, java.io.InputStream inputStream, ProgressReportingSource.ProgressListener listener)
public long contentLength() throws java.io.IOException
java.io.IOException
public MediaType contentType()
public void writeTo(BufferedSink sink) throws java.io.IOException
java.io.IOException
protected void finalize() throws java.lang.Throwable
java.lang.Throwable