@Beta public class JsonBodyGenerator<T> extends Object implements BodyGenerator
| Modifier and Type | Method and Description |
|---|---|
static <T> JsonBodyGenerator<T> |
jsonBodyGenerator(JsonCodec<T> jsonCodec,
T instance) |
void |
write(OutputStream out) |
public static <T> JsonBodyGenerator<T> jsonBodyGenerator(JsonCodec<T> jsonCodec, T instance)
public void write(OutputStream out) throws Exception
write in interface BodyGeneratorExceptionCopyright © 2010-2013 Airlift. All Rights Reserved.