public class StaticBodyGenerator extends Object implements BodyGenerator
| Modifier | Constructor and Description |
|---|---|
protected |
StaticBodyGenerator(byte[] body) |
| Modifier and Type | Method and Description |
|---|---|
static StaticBodyGenerator |
createStaticBodyGenerator(byte[] body) |
static StaticBodyGenerator |
createStaticBodyGenerator(String body,
Charset charset) |
byte[] |
getBody() |
void |
write(OutputStream out) |
public static StaticBodyGenerator createStaticBodyGenerator(String body, Charset charset)
public static StaticBodyGenerator createStaticBodyGenerator(byte[] body)
public byte[] getBody()
public void write(OutputStream out) throws Exception
write in interface BodyGeneratorExceptionCopyright © 2010–2020 Airlift. All rights reserved.