Type
- input type.public class JacksonJsonMarshaller<Type> extends Object implements JsonMarshaller<Type>
JsonMarshaller
.Constructor and Description |
---|
JacksonJsonMarshaller() |
Modifier and Type | Method and Description |
---|---|
static <Type> JacksonJsonMarshaller<Type> |
forType(Class<Type> type)
Returns an instance of JacksonJsonMarshaller.
|
byte[] |
marshall(Type t)
Marshall a given of type T.
|
void |
marshall(Type t,
OutputStream stream)
Marshall a given of type T.
|
public static <Type> JacksonJsonMarshaller<Type> forType(Class<Type> type)
Type
- input type.type
- class from which the JSON is marshalled from.JacksonJsonMarshaller
.public void marshall(Type t, OutputStream stream)
marshall
in interface JsonMarshaller<Type>
t
- Type to marshall from.stream
- outputstream.public byte[] marshall(Type t)
marshall
in interface JsonMarshaller<Type>
t
- Type to marshall from.Copyright © 2023. All rights reserved.