|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ning.http.client.generators.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)
|
|
FileBodyGenerator(java.io.File file,
long regionSeek,
long regionLength)
|
|
| 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)
public FileBodyGenerator(java.io.File file,
long regionSeek,
long regionLength)
| Method Detail |
|---|
public RandomAccessBody createBody()
throws java.io.IOException
BodyGenerator
createBody in interface BodyGeneratornull.
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 | |||||||||