Package io.airlift.http.client
Class FileBodyGenerator
- java.lang.Object
-
- io.airlift.http.client.FileBodyGenerator
-
- All Implemented Interfaces:
BodyGenerator
@Beta public class FileBodyGenerator extends Object implements BodyGenerator
-
-
Constructor Summary
Constructors Constructor Description FileBodyGenerator(Path path)
-
-
-
Constructor Detail
-
FileBodyGenerator
public FileBodyGenerator(Path path)
-
-
Method Detail
-
getPath
public Path getPath()
-
write
public void write(OutputStream out) throws Exception
- Specified by:
write
in interfaceBodyGenerator
- Throws:
Exception
-
-