Project Wonder 5.0

er.ajax.json.serializer
Class NSDataSerializer

java.lang.Object
  extended by org.jabsorb.serializer.AbstractSerializer
      extended by er.ajax.json.serializer.NSDataSerializer
All Implemented Interfaces:
java.io.Serializable, org.jabsorb.serializer.Serializer

public class NSDataSerializer
extends org.jabsorb.serializer.AbstractSerializer

Transforms NSData between JavaScript and Java.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jabsorb.serializer.AbstractSerializer
ser
 
Constructor Summary
NSDataSerializer()
           
 
Method Summary
 boolean canSerialize(java.lang.Class clazz, java.lang.Class jsonClazz)
           
 java.lang.Class[] getJSONClasses()
           
 java.lang.Class[] getSerializableClasses()
           
 java.lang.Object marshall(org.jabsorb.serializer.SerializerState state, java.lang.Object p, java.lang.Object o)
           
 org.jabsorb.serializer.ObjectMatch tryUnmarshall(org.jabsorb.serializer.SerializerState state, java.lang.Class clazz, java.lang.Object o)
           
 java.lang.Object unmarshall(org.jabsorb.serializer.SerializerState state, java.lang.Class clazz, java.lang.Object o)
           
 
Methods inherited from class org.jabsorb.serializer.AbstractSerializer
setOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NSDataSerializer

public NSDataSerializer()
Method Detail

getSerializableClasses

public java.lang.Class[] getSerializableClasses()

getJSONClasses

public java.lang.Class[] getJSONClasses()

canSerialize

public boolean canSerialize(java.lang.Class clazz,
                            java.lang.Class jsonClazz)
Specified by:
canSerialize in interface org.jabsorb.serializer.Serializer
Overrides:
canSerialize in class org.jabsorb.serializer.AbstractSerializer

tryUnmarshall

public org.jabsorb.serializer.ObjectMatch tryUnmarshall(org.jabsorb.serializer.SerializerState state,
                                                        java.lang.Class clazz,
                                                        java.lang.Object o)
                                                 throws org.jabsorb.serializer.UnmarshallException
Throws:
org.jabsorb.serializer.UnmarshallException

unmarshall

public java.lang.Object unmarshall(org.jabsorb.serializer.SerializerState state,
                                   java.lang.Class clazz,
                                   java.lang.Object o)
                            throws org.jabsorb.serializer.UnmarshallException
Throws:
org.jabsorb.serializer.UnmarshallException

marshall

public java.lang.Object marshall(org.jabsorb.serializer.SerializerState state,
                                 java.lang.Object p,
                                 java.lang.Object o)
                          throws org.jabsorb.serializer.MarshallException
Throws:
org.jabsorb.serializer.MarshallException

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.