|
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.JsonJaxbMarshaller
public class JsonJaxbMarshaller
JAXB-based marshaller that marshals object to/from JSON.
Field Summary |
---|
Fields inherited from interface com.tangosol.coherence.rest.io.Marshaller |
---|
FORMAT_OUTPUT |
Constructor Summary | |
---|---|
JsonJaxbMarshaller(java.lang.Class clzRoot) Construct a JsonJaxbMarshaller instance. |
Method Summary | |
---|---|
protected void |
configureJaxbMarshaller(com.sun.jersey.api.json.JSONMarshaller marshaller) Configure a JAXB marshaller. |
protected void |
configureJaxbUnmarshaller(com.sun.jersey.api.json.JSONUnmarshaller unmarshaller) Configure a JAXB unmarshaller. |
protected com.sun.jersey.api.json.JSONConfiguration |
getJsonConfiguration() Return a JSON marshaller configuration. |
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 JsonJaxbMarshaller(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 com.sun.jersey.api.json.JSONConfiguration getJsonConfiguration()
protected void configureJaxbMarshaller(com.sun.jersey.api.json.JSONMarshaller marshaller) throws javax.xml.bind.PropertyException
marshaller
- marshaller to configurejavax.xml.bind.PropertyException
- when there is an error processing a property or valueprotected void configureJaxbUnmarshaller(com.sun.jersey.api.json.JSONUnmarshaller unmarshaller) throws javax.xml.bind.PropertyException
unmarshaller
- unmarshaller to configurejavax.xml.bind.PropertyException
- when there is an error processing a property or value
|
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 |