|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ning.http.client.FileBodyGenerator
public class FileBodyGenerator
Creates a request body from the contents of a file.
Nested Class Summary | |
---|---|
protected static class |
FileBodyGenerator.FileBody
|
Constructor Summary | |
---|---|
FileBodyGenerator(java.io.File file)
|
Method Summary | |
---|---|
RandomAccessBody |
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 FileBodyGenerator(java.io.File file)
Method Detail |
---|
public RandomAccessBody 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 |