com.ning.http.client.generators
public class ByteArrayBodyGenerator extends java.lang.Object implements BodyGenerator
BodyGenerator
backed by a byte array.Modifier and Type | Class and Description |
---|---|
protected class |
ByteArrayBodyGenerator.ByteBody |
Constructor and Description |
---|
ByteArrayBodyGenerator(byte[] bytes) |
Modifier and Type | Method and Description |
---|---|
Body |
createBody()
Creates a new instance of the request body to be read.
|
public Body 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.