Package apple.foundation.protocol
Interface NSKeyedArchiverDelegate
-
public interface NSKeyedArchiverDelegate
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidarchiverDidEncodeObject(@NotNull NSKeyedArchiver archiver, @Nullable java.lang.Object object)Informs the delegate that the object is about to be encoded.default voidarchiverDidFinish(@NotNull NSKeyedArchiver archiver)Notifies the delegate that encoding is about to finish.default @Nullable java.lang.ObjectarchiverWillEncodeObject(@NotNull NSKeyedArchiver archiver, @NotNull java.lang.Object object)substitutiondefault voidarchiverWillFinish(@NotNull NSKeyedArchiver archiver)Informs the delegate that the newObject is being substituted for the object.default voidarchiverWillReplaceObjectWithObject(@NotNull NSKeyedArchiver archiver, @Nullable java.lang.Object object, @Nullable java.lang.Object newObject)notification
-
-
-
Method Detail
-
archiverDidEncodeObject
default void archiverDidEncodeObject(@NotNull @NotNull NSKeyedArchiver archiver, @Nullable @Nullable 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
@Nullable default @Nullable java.lang.Object archiverWillEncodeObject(@NotNull @NotNull NSKeyedArchiver archiver, @NotNull @NotNull java.lang.Object object)substitution
-
archiverWillReplaceObjectWithObject
default void archiverWillReplaceObjectWithObject(@NotNull @NotNull NSKeyedArchiver archiver, @Nullable @Nullable java.lang.Object object, @Nullable @Nullable java.lang.Object newObject)notification
-
archiverDidFinish
default void archiverDidFinish(@NotNull @NotNull NSKeyedArchiver archiver)Notifies the delegate that encoding is about to finish.
-
archiverWillFinish
default void archiverWillFinish(@NotNull @NotNull 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.
-
-