public class InputStreamBodyGenerator extends Object implements BodyGenerator
BodyGenerator which use an InputStream for reading bytes, without having to read the entire
stream in memory.
NOTE: The InputStream must support the InputStream.mark(int) and InputStream.reset() operation.
If not, mechanisms like authentication, redirect, or resumable download will not works.| Modifier and Type | Class and Description |
|---|---|
protected class |
InputStreamBodyGenerator.ISBody |
| Constructor and Description |
|---|
InputStreamBodyGenerator(InputStream inputStream) |
public InputStreamBodyGenerator(InputStream inputStream)
public Body createBody() throws IOException
BodyGeneratorcreateBody in interface BodyGeneratornull.IOException - If the body could not be created.Copyright © 2015. All rights reserved.