public interface OsonConverter
A converter which provides the conversion methods of POJO to OSON bytes and vice versa.
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
deserialize(OracleJsonParser oParser,
java.lang.Class<?> type)
Deserialize the OSON bytes represented by this parser
into an instance of the class provided.
|
void |
serialize(OracleJsonGenerator oGen,
java.lang.Object object)
Serializes the given object using the generator.
|
void serialize(OracleJsonGenerator oGen, java.lang.Object object) throws java.lang.IllegalStateException
object - java object to be serialized. Maybe null.oGen - OracleJsonGenerator where the object is serialized into. Not null.java.lang.IllegalStateException - if serialization fails.java.lang.Object deserialize(OracleJsonParser oParser, java.lang.Class<?> type) throws java.lang.IllegalStateException
oParser. - An instance of OracleJsonParser representing
the oson bytes. Maybe null.type - of the expected object. Not null.java.lang.IllegalStateException - if the type mapping is wrong or deserializer fails.