Package apple.foundation.protocol
Interface NSKeyedArchiverDelegate
-
public interface NSKeyedArchiverDelegate
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidarchiverDidEncodeObject(NSKeyedArchiver archiver, java.lang.Object object)Informs the delegate that the object is about to be encoded.default voidarchiverDidFinish(NSKeyedArchiver archiver)Notifies the delegate that encoding is about to finish.default java.lang.ObjectarchiverWillEncodeObject(NSKeyedArchiver archiver, java.lang.Object object)substitutiondefault voidarchiverWillFinish(NSKeyedArchiver archiver)Informs the delegate that the newObject is being substituted for the object.default voidarchiverWillReplaceObjectWithObject(NSKeyedArchiver archiver, java.lang.Object object, java.lang.Object newObject)notification
-
-
-
Method Detail
-
archiverDidEncodeObject
default void archiverDidEncodeObject(NSKeyedArchiver archiver, java.lang.Object object)
Informs the delegate that the object is about to be encoded. The delegate either returns this object or can return a different object to be encoded instead. The delegate can also fiddle with the coder state. If the delegate returns nil, nil is encoded. This method is called after the original object may have replaced itself with replacementObjectForKeyedArchiver:. This method is not called for an object once a replacement mapping has been setup for that object (either explicitly, or because the object has previously been encoded). This is also not called when nil is about to be encoded. This method is called whether or not the object is being encoded conditionally.
-
archiverWillEncodeObject
default java.lang.Object archiverWillEncodeObject(NSKeyedArchiver archiver, java.lang.Object object)
substitution
-
archiverWillReplaceObjectWithObject
default void archiverWillReplaceObjectWithObject(NSKeyedArchiver archiver, java.lang.Object object, java.lang.Object newObject)
notification
-
archiverDidFinish
default void archiverDidFinish(NSKeyedArchiver archiver)
Notifies the delegate that encoding is about to finish.
-
archiverWillFinish
default void archiverWillFinish(NSKeyedArchiver archiver)
Informs the delegate that the newObject is being substituted for the object. This is also called when the delegate itself is doing/has done the substitution. The delegate may use this method if it is keeping track of the encoded or decoded objects.
-
-