public final class InputStreamBodyGenerator extends Object implements BodyGenerator
BodyGenerator which use an InputStream for reading bytes, without having to read the entire stream in memory.
InputStream must support the InputStream.mark(int) and InputStream.reset() operation. If not, mechanisms like authentication, redirect, or
resumable download will not works.| Constructor and Description |
|---|
InputStreamBodyGenerator(InputStream inputStream) |
| Modifier and Type | Method and Description |
|---|---|
Body |
createBody()
Creates a new instance of the request body to be read.
|
InputStream |
getInputStream() |
public InputStreamBodyGenerator(InputStream inputStream)
public InputStream getInputStream()
public Body createBody()
createBody in interface BodyGeneratornull.Copyright © 2016. All Rights Reserved.