public class FileBodyGenerator extends Object implements BodyGenerator
Modifier and Type | Class and Description |
---|---|
protected static class |
FileBodyGenerator.FileBody |
Constructor and Description |
---|
FileBodyGenerator(File file) |
FileBodyGenerator(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.
|
File |
getFile() |
long |
getRegionLength() |
long |
getRegionSeek() |
public FileBodyGenerator(File file)
public FileBodyGenerator(File file, long regionSeek, long regionLength)
public RandomAccessBody createBody() throws IOException
BodyGenerator
createBody
in interface BodyGenerator
null
.IOException
- If the body could not be created.public File getFile()
public long getRegionSeek()
public long getRegionLength()
Copyright © 2016. All Rights Reserved.