|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
| 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(JSONMarshaller marshaller)Configure a JAXB marshaller. |
protected void |
configureJaxbUnmarshaller(JSONUnmarshaller unmarshaller)Configure a JAXB unmarshaller. |
protected 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 for| Method 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 marshalling
public 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 JSONConfiguration getJsonConfiguration()
protected void configureJaxbMarshaller(JSONMarshaller marshaller)
throws javax.xml.bind.PropertyException
marshaller - marshaller to configurejavax.xml.bind.PropertyException - when there is an error processing a property or value
protected void configureJaxbUnmarshaller(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 3.7.1.0 E22843-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||