|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ning.http.client.generators.InputStreamBodyGenerator
public class InputStreamBodyGenerator
A 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.
Nested Class Summary | |
---|---|
protected class |
InputStreamBodyGenerator.ISBody
|
Constructor Summary | |
---|---|
InputStreamBodyGenerator(java.io.InputStream inputStream)
|
Method Summary | |
---|---|
Body |
createBody()
Creates a new instance of the request body to be read. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputStreamBodyGenerator(java.io.InputStream inputStream)
Method Detail |
---|
public Body createBody() throws java.io.IOException
BodyGenerator
createBody
in interface BodyGenerator
null
.
java.io.IOException
- If the body could not be created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |