/** * Clear all object reference information so that the instance * can be used to deserialize another data structure. * * Reset should be called before reading a top level object, * such as a new header or a new body. */ public void reset() { TypeMarshallingContext marshallingContext = TypeMarshallingContext.getTypeMarshallingContext(); marshallingContext.reset(); }
/** * Clear all object reference information so that the instance * can be used to deserialize another data structure. * * Reset should be called before reading a top level object, * such as a new header or a new body. */ public void reset() { nestObjectLevel = 0; nestCollectionLevel = 0; TypeMarshallingContext marshallingContext = TypeMarshallingContext.getTypeMarshallingContext(); marshallingContext.reset(); }
/** * Clear all object reference information so that the instance * can be used to deserialize another data structure. * * Reset should be called before reading a top level object, * such as a new header or a new body. */ public void reset() { nestObjectLevel = 0; nestCollectionLevel = 0; TypeMarshallingContext marshallingContext = TypeMarshallingContext.getTypeMarshallingContext(); marshallingContext.reset(); }
public void reset() { stringTable.clear(); objectTable.clear(); traitsTable.clear(); objectStack.clear(); proxyStack.clear(); arrayPropertyStack.clear(); traitsStack.clear(); currentBody = null; currentHeader = null; TypeMarshallingContext marshallingContext = TypeMarshallingContext.getTypeMarshallingContext(); marshallingContext.reset(); }
/** * Reset the AmfxInput object. */ public void reset() { stringTable.clear(); objectTable.clear(); traitsTable.clear(); objectStack.clear(); proxyStack.clear(); arrayPropertyStack.clear(); dictionaryStack.clear(); traitsStack.clear(); currentBody = null; currentHeader = null; TypeMarshallingContext marshallingContext = TypeMarshallingContext.getTypeMarshallingContext(); marshallingContext.reset(); }
/** * Reset the AmfxInput object. */ public void reset() { stringTable.clear(); objectTable.clear(); traitsTable.clear(); objectStack.clear(); proxyStack.clear(); arrayPropertyStack.clear(); dictionaryStack.clear(); traitsStack.clear(); currentBody = null; currentHeader = null; TypeMarshallingContext marshallingContext = TypeMarshallingContext.getTypeMarshallingContext(); marshallingContext.reset(); }
protected Object decodeArray(Object shellArray, Collection collection, Class arrayElementClass) { Object[] array = collection.toArray(); TypeMarshallingContext.getTypeMarshallingContext().getKnownObjects().put(array, shellArray); return decodeArray(shellArray, array, arrayElementClass); }
protected Object decodeArray(Object shellArray, Collection collection, Class arrayElementClass) { Object[] array = collection.toArray(); TypeMarshallingContext.getTypeMarshallingContext().getKnownObjects().put(array, shellArray); return decodeArray(shellArray, array, arrayElementClass); }
protected Object decodeArray(Object shellArray, Collection collection, Class arrayElementClass) { Object[] array = collection.toArray(); TypeMarshallingContext.getTypeMarshallingContext().getKnownObjects().put(array, shellArray); return decodeArray(shellArray, array, arrayElementClass); }
/** * A utility method which returns the Class from the given Class name * using the current type context's class loader. * * @param className the class name. * @return a Class object for the named class. */ public static Class getClassFromClassName(String className) { TypeMarshallingContext typeContext = TypeMarshallingContext.getTypeMarshallingContext(); return ClassUtil.createClass(className, typeContext.getClassLoader()); }
/** * A utility method which returns the Class from the given Class name * using the current type context's class loader. * * @param className the class name. * @return a Class object for the named class. */ public static Class getClassFromClassName(String className) { TypeMarshallingContext typeContext = TypeMarshallingContext.getTypeMarshallingContext(); return ClassUtil.createClass(className, typeContext.getClassLoader()); }
public Object decodeObject(Object shell, Object encodedObject, Class desiredClass) { Object result = super.decodeObject(shell, encodedObject, desiredClass); // Only AMF 3 Dates can be sent by reference so we only // need to remember this translation to re-establish pointers // to the encodedObject if the incoming type was a Date object. if (result != null && SerializationContext.getSerializationContext().supportDatesByReference && encodedObject instanceof java.util.Date) { TypeMarshallingContext context = TypeMarshallingContext.getTypeMarshallingContext(); context.getKnownObjects().put(encodedObject, result); } return result; } }
public Object decodeObject(Object shell, Object encodedObject, Class desiredClass) { Object result = super.decodeObject(shell, encodedObject, desiredClass); // Only AMF 3 Dates can be sent by reference so we only // need to remember this translation to re-establish pointers // to the encodedObject if the incoming type was a Date object. if (result != null && SerializationContext.getSerializationContext().supportDatesByReference && encodedObject instanceof java.util.Date) { TypeMarshallingContext context = TypeMarshallingContext.getTypeMarshallingContext(); context.getKnownObjects().put(encodedObject, result); } return result; } }
public Object decodeObject(Object shell, Object encodedObject, Class desiredClass) { Object result = super.decodeObject(shell, encodedObject, desiredClass); // Only AMF 3 Dates can be sent by reference so we only // need to remember this translation to re-establish pointers // to the encodedObject if the incoming type was a Date object. if (result != null && SerializationContext.getSerializationContext().supportDatesByReference && encodedObject instanceof java.util.Date) { TypeMarshallingContext context = TypeMarshallingContext.getTypeMarshallingContext(); context.getKnownObjects().put(encodedObject, result); } return result; } }
public Object decodeObject(Object shell, Object encodedObject, Class desiredClass) { Object result = super.decodeObject(shell, encodedObject, desiredClass); // Only AMF 3 Dates can be sent by reference so we only // need to remember this translation to re-establish pointers // to the encodedObject if the incoming type was a Date object. if (result != null && SerializationContext.getSerializationContext().supportDatesByReference && encodedObject instanceof java.util.Date) { TypeMarshallingContext context = TypeMarshallingContext.getTypeMarshallingContext(); context.getKnownObjects().put(encodedObject, result); } return result; } }
public Object decodeObject(Object shell, Object encodedObject, Class desiredClass) { Object result = super.decodeObject(shell, encodedObject, desiredClass); // Only AMF 3 Dates can be sent by reference so we only // need to remember this translation to re-establish pointers // to the encodedObject if the incoming type was a Date object. if (result != null && SerializationContext.getSerializationContext().supportDatesByReference && encodedObject instanceof java.util.Date) { TypeMarshallingContext context = TypeMarshallingContext.getTypeMarshallingContext(); context.getKnownObjects().put(encodedObject, result); } return result; } }
public Object decodeObject(Object shell, Object encodedObject, Class desiredClass) { Object result = super.decodeObject(shell, encodedObject, desiredClass); // Only AMF 3 Dates can be sent by reference so we only // need to remember this translation to re-establish pointers // to the encodedObject if the incoming type was a Date object. if (result != null && SerializationContext.getSerializationContext().supportDatesByReference && encodedObject instanceof java.util.Date) { TypeMarshallingContext context = TypeMarshallingContext.getTypeMarshallingContext(); context.getKnownObjects().put(encodedObject, result); } return result; } }
public Object createShell(Object encodedObject, Class desiredClass) { Object shell = null; Class cls; String type = TypeMarshallingContext.getType(encodedObject); if (type != null) { TypeMarshallingContext context = TypeMarshallingContext.getTypeMarshallingContext(); cls = ClassUtil.createClass(type, context.getClassLoader()); } else { cls = desiredClass; } shell = ClassUtil.createDefaultInstance(cls, null); return shell; }
public Object createShell(Object encodedObject, Class desiredClass) { Object shell = null; Class cls; String type = TypeMarshallingContext.getType(encodedObject); if (type != null) { TypeMarshallingContext context = TypeMarshallingContext.getTypeMarshallingContext(); cls = ClassUtil.createClass(type, context.getClassLoader()); } else { cls = desiredClass; } shell = ClassUtil.createDefaultInstance(cls, null); return shell; }
public Object createShell(Object encodedObject, Class desiredClass) { Object shell = null; Class cls; String type = TypeMarshallingContext.getType(encodedObject); if (type != null) { TypeMarshallingContext context = TypeMarshallingContext.getTypeMarshallingContext(); cls = ClassUtil.createClass(type, context.getClassLoader()); } else { cls = desiredClass; } shell = ClassUtil.createDefaultInstance(cls, null); return shell; }