public class ThriftFormatter extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ThriftFormatter.EnumValuePresence |
| Constructor and Description |
|---|
ThriftFormatter() |
ThriftFormatter(ThriftFormatter.EnumValuePresence presence) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendTypedValue(net.morimekta.util.json.JsonWriter writer,
Object value,
PDescriptor type,
String packageContext) |
void |
format(OutputStream out,
CDocument document) |
public ThriftFormatter()
public ThriftFormatter(ThriftFormatter.EnumValuePresence presence)
public void format(OutputStream out, CDocument document)
protected void appendTypedValue(net.morimekta.util.json.JsonWriter writer,
Object value,
PDescriptor type,
String packageContext)
throws IOException,
net.morimekta.util.json.JsonException
writer - value - type - packageContext - net.morimekta.util.json.JsonExceptionIOExceptionCopyright © 2016. All rights reserved.