|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.coherence.rest.io.AbstractMarshaller
com.tangosol.coherence.rest.io.JsonJacksonMarshaller
public class JsonJacksonMarshaller
Jackson-based marshaller that marshals object to/from JSON.
Field Summary |
---|
Fields inherited from interface com.tangosol.coherence.rest.io.Marshaller |
---|
FORMAT_OUTPUT |
Constructor Summary | |
---|---|
JsonJacksonMarshaller(java.lang.Class clzRoot) Construct JsonJacksonMarshaller instance. |
Method Summary | |
---|---|
protected void |
configureObjectMapper(org.codehaus.jackson.map.ObjectMapper mapper) Configure a Jackson ObjectMapper. |
void |
marshal(java.lang.Object oValue, java.io.OutputStream out) Write the specified object into the given stream. |
java.lang.Object |
unmarshal(java.io.InputStream in) Read an object from the specified stream. |
Methods inherited from class com.tangosol.coherence.rest.io.AbstractMarshaller |
---|
getRootClass, marshalAsFragment |
Constructor Detail |
---|
public JsonJacksonMarshaller(java.lang.Class clzRoot)
clzRoot
- class of the root object this marshaller is forMethod Detail |
---|
public void marshal(java.lang.Object oValue, java.io.OutputStream out) throws java.io.IOException
oValue
- object to marshallout
- stream to write tojava.io.IOException
- if an error occurs during marshallingpublic java.lang.Object unmarshal(java.io.InputStream in) throws java.io.IOException
in
- stream to read fromjava.io.IOException
- if an error occurs during unmarshallingprotected void configureObjectMapper(org.codehaus.jackson.map.ObjectMapper mapper)
mapper
- object mapper to configure
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |