com.ning.http.client.generators
public class FileBodyGenerator extends java.lang.Object implements BodyGenerator
Modifier and Type | Class and Description |
---|---|
protected static class |
FileBodyGenerator.FileBody |
Constructor and Description |
---|
FileBodyGenerator(java.io.File file) |
FileBodyGenerator(java.io.File file,
long regionSeek,
long regionLength) |
Modifier and Type | Method and Description |
---|---|
RandomAccessBody |
createBody()
Creates a new instance of the request body to be read.
|
public FileBodyGenerator(java.io.File file)
public FileBodyGenerator(java.io.File file, long regionSeek, long regionLength)
public RandomAccessBody createBody() throws java.io.IOException
BodyGenerator
createBody
in interface BodyGenerator
null
.java.io.IOException
- If the body could not be created.Copyright © 2014. All Rights Reserved.