Class NSKeyedArchiver

  • All Implemented Interfaces:
    NSObjectProtocol, org.robovm.objc.ObjCProtocol

    public class NSKeyedArchiver
    extends NSCoder
    • Constructor Detail

      • NSKeyedArchiver

        public NSKeyedArchiver()
      • NSKeyedArchiver

        protected NSKeyedArchiver​(NSObject.Handle h,
                                  long handle)
      • NSKeyedArchiver

        public NSKeyedArchiver​(boolean requiresSecureCoding)
        Since:
        Available in iOS 11.0 and later.
      • NSKeyedArchiver

        @Deprecated
        public NSKeyedArchiver​(NSMutableData data)
        Deprecated.
        Deprecated in iOS 12.0. Use -initRequiringSecureCoding: instead
        Since:
        Available in iOS 2.0 and later.
    • Method Detail

      • getEncodedData

        public NSData getEncodedData()
        Since:
        Available in iOS 10.0 and later.
      • requiresSecureCoding

        public boolean requiresSecureCoding()
        Overrides:
        requiresSecureCoding in class NSCoder
        Since:
        Available in iOS 6.0 and later.
      • setRequiresSecureCoding

        public void setRequiresSecureCoding​(boolean v)
        Since:
        Available in iOS 6.0 and later.
      • archive

        public boolean archive​(NSObject rootObject,
                               java.io.File file)
      • ArchiveRootObjectKey

        public static java.lang.String ArchiveRootObjectKey()
        Since:
        Available in iOS 7.0 and later.
      • init

        protected long init​(boolean requiresSecureCoding)
        Since:
        Available in iOS 11.0 and later.
      • init

        @Deprecated
        protected long init​(NSMutableData data)
        Deprecated.
        Deprecated in iOS 12.0. Use -initRequiringSecureCoding: instead
        Since:
        Available in iOS 2.0 and later.
      • finishEncoding

        public void finishEncoding()
      • setClassNameForClass

        public void setClassNameForClass​(java.lang.String codedName,
                                         java.lang.Class<? extends NSObject> cls)
      • getClassNameForClass

        public java.lang.String getClassNameForClass​(java.lang.Class<? extends NSObject> cls)
      • archivedDataWithRootObject

        public static NSData archivedDataWithRootObject​(NSObject object,
                                                        boolean requiresSecureCoding,
                                                        NSError.NSErrorPtr error)
        Since:
        Available in iOS 11.0 and later.
      • archive

        @Deprecated
        public static NSData archive​(NSObject rootObject)
        Deprecated.
        Deprecated in iOS 12.0. Use +archivedDataWithRootObject:requiringSecureCoding:error: instead
        Since:
        Available in iOS 2.0 and later.
      • setDefaultClassNameForClass

        public static void setDefaultClassNameForClass​(java.lang.String codedName,
                                                       java.lang.Class<? extends NSObject> cls)
      • getDefaultClassNameForClass

        public static java.lang.String getDefaultClassNameForClass​(java.lang.Class<? extends NSObject> cls)