| Constructor and Description |
|---|
WireConverter()
Create a converter with a default
Wire instance. |
WireConverter(com.squareup.wire.Wire wire)
Create a converter using the supplied
Wire instance. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
fromBody(TypedInput body,
java.lang.reflect.Type type) |
TypedOutput |
toBody(java.lang.Object object) |
public WireConverter()
Wire instance.public WireConverter(com.squareup.wire.Wire wire)
Wire instance.public java.lang.Object fromBody(TypedInput body, java.lang.reflect.Type type) throws ConversionException
fromBody in interface ConverterConversionExceptionpublic TypedOutput toBody(java.lang.Object object)
Copyright © 2014 Square, Inc.. All Rights Reserved.