public class JacksonJsonMarshaller extends AbstractMarshaller
FORMAT_OUTPUT
Constructor and Description |
---|
JacksonJsonMarshaller(Class clzRoot)
Construct JacksonJsonMarshaller instance.
|
Modifier and Type | Method and Description |
---|---|
void |
marshal(Object oValue, OutputStream out)
Write the specified object into the given stream.
|
Object |
unmarshal(InputStream in)
Read an object from the specified stream.
|
getRootClass, marshalAsFragment
public JacksonJsonMarshaller(Class clzRoot)
clzRoot
- class of the root object this marshaller is forpublic void marshal(Object oValue, OutputStream out) throws IOException
oValue
- object to marshallout
- stream to write toIOException
- if an error occurs during marshallingpublic Object unmarshal(InputStream in) throws IOException
in
- stream to read fromIOException
- if an error occurs during unmarshalling