NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
NSKeyedArchiver(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static NSKeyedArchiver |
alloc() |
static NSKeyedArchiver |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static NSData |
archivedDataWithRootObject(java.lang.Object rootObject) |
static NSData |
archivedDataWithRootObjectRequiringSecureCodingError(java.lang.Object object,
boolean requiresSecureCoding,
org.moe.natj.general.ptr.Ptr<NSError> error)
Returns an \c NSData object containing the encoded form of the object graph whose root object is given, optionally disabling secure coding.
|
static boolean |
archiveRootObjectToFile(java.lang.Object rootObject,
java.lang.String path) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
classNameForClass_static(org.moe.natj.objc.Class cls)
During encoding, the coder first checks with the coder's
own table, then if there was no mapping there, the class's.
|
java.lang.String |
classNameForClass(org.moe.natj.objc.Class cls) |
static java.lang.String |
debugDescription_static() |
NSKeyedArchiverDelegate |
delegate() |
static java.lang.String |
description_static() |
void |
encodeBoolForKey(boolean value,
java.lang.String key) |
void |
encodeBytesLengthForKey(org.moe.natj.general.ptr.ConstBytePtr bytes,
long length,
java.lang.String key) |
void |
encodeConditionalObjectForKey(java.lang.Object object,
java.lang.String key) |
NSData |
encodedData()
If encoding has not yet finished, then invoking this property will call finishEncoding and return the data.
|
void |
encodeDoubleForKey(double value,
java.lang.String key) |
void |
encodeFloatForKey(float value,
java.lang.String key) |
void |
encodeInt32ForKey(int value,
java.lang.String key) |
void |
encodeInt64ForKey(long value,
java.lang.String key) |
void |
encodeIntForKey(int value,
java.lang.String key)
native int
|
void |
encodeObjectForKey(java.lang.Object object,
java.lang.String key) |
void |
finishEncoding() |
static long |
hash_static() |
NSKeyedArchiver |
init()
Initialize the archiver with empty data, ready for writing.
|
NSKeyedArchiver |
initForWritingWithMutableData(NSMutableData data) |
NSKeyedArchiver |
initRequiringSecureCoding(boolean requiresSecureCoding)
Initializes the receiver for encoding an archive, optionally disabling secure coding.
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static NSKeyedArchiver |
new_objc() |
long |
outputFormat() |
boolean |
requiresSecureCoding()
Enables secure coding support on this keyed archiver.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
static void |
setClassNameForClass_static(java.lang.String codedName,
org.moe.natj.objc.Class cls) |
void |
setClassNameForClass(java.lang.String codedName,
org.moe.natj.objc.Class cls) |
void |
setDelegate_unsafe(NSKeyedArchiverDelegate value) |
void |
setDelegate(NSKeyedArchiverDelegate value) |
void |
setOutputFormat(long value) |
void |
setRequiresSecureCoding(boolean value)
Enables secure coding support on this keyed archiver.
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static long |
version_static() |
allowedClasses, allowsKeyedCoding, containsValueForKey, decodeArrayOfObjCTypeCountAt, decodeArrayOfObjectsOfClassesForKey, decodeArrayOfObjectsOfClassForKey, decodeBoolForKey, decodeBytesForKeyReturnedLength, decodeBytesWithReturnedLength, decodeCGAffineTransformForKey, decodeCGPointForKey, decodeCGRectForKey, decodeCGSizeForKey, decodeCGVectorForKey, decodeCMTimeForKey, decodeCMTimeMappingForKey, decodeCMTimeRangeForKey, decodeDataObject, decodeDictionaryWithKeysOfClassesObjectsOfClassesForKey, decodeDictionaryWithKeysOfClassObjectsOfClassForKey, decodeDirectionalEdgeInsetsForKey, decodeDoubleForKey, decodeFloatForKey, decodeInt32ForKey, decodeInt64ForKey, decodeIntegerForKey, decodeIntForKey, decodeObject, decodeObjectForKey, decodeObjectOfClassesForKey, decodeObjectOfClassForKey, decodePropertyListForKey, decodeTopLevelObjectAndReturnError, decodeTopLevelObjectForKeyError, decodeTopLevelObjectOfClassesForKeyError, decodeTopLevelObjectOfClassForKeyError, decodeUIEdgeInsetsForKey, decodeUIOffsetForKey, decodeValueOfObjCTypeAt, decodeValueOfObjCTypeAtSize, decodeValuesOfObjCTypes, decodingFailurePolicy, encodeArrayOfObjCTypeCountAt, encodeBycopyObject, encodeByrefObject, encodeBytesLength, encodeCGAffineTransformForKey, encodeCGPointForKey, encodeCGRectForKey, encodeCGSizeForKey, encodeCGVectorForKey, encodeCMTimeForKey, encodeCMTimeMappingForKey, encodeCMTimeRangeForKey, encodeConditionalObject, encodeDataObject, encodeDirectionalEdgeInsetsForKey, encodeIntegerForKey, encodeObject, encodeRootObject, encodeUIEdgeInsetsForKey, encodeUIOffsetForKey, encodeValueOfObjCTypeAt, encodeValuesOfObjCTypes, error, failWithError, systemVersion, versionForClassNameaccessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static NSKeyedArchiver alloc()
public static NSKeyedArchiver allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean archiveRootObjectToFile(java.lang.Object rootObject,
java.lang.String path)
public static NSData archivedDataWithRootObject(java.lang.Object rootObject)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String classNameForClass_static(org.moe.natj.objc.Class cls)
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static NSKeyedArchiver new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setClassNameForClass_static(java.lang.String codedName,
org.moe.natj.objc.Class cls)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public java.lang.String classNameForClass(org.moe.natj.objc.Class cls)
public NSKeyedArchiverDelegate delegate()
public void encodeBoolForKey(boolean value,
java.lang.String key)
encodeBoolForKey in class NSCoderpublic void encodeBytesLengthForKey(org.moe.natj.general.ptr.ConstBytePtr bytes,
long length,
java.lang.String key)
encodeBytesLengthForKey in class NSCoderpublic void encodeConditionalObjectForKey(java.lang.Object object,
java.lang.String key)
encodeConditionalObjectForKey in class NSCoderpublic void encodeDoubleForKey(double value,
java.lang.String key)
encodeDoubleForKey in class NSCoderpublic void encodeFloatForKey(float value,
java.lang.String key)
encodeFloatForKey in class NSCoderpublic void encodeInt32ForKey(int value,
java.lang.String key)
encodeInt32ForKey in class NSCoderpublic void encodeInt64ForKey(long value,
java.lang.String key)
encodeInt64ForKey in class NSCoderpublic void encodeIntForKey(int value,
java.lang.String key)
encodeIntForKey in class NSCoderpublic void encodeObjectForKey(java.lang.Object object,
java.lang.String key)
encodeObjectForKey in class NSCoderpublic NSData encodedData()
public void finishEncoding()
public NSKeyedArchiver init()
public NSKeyedArchiver initForWritingWithMutableData(NSMutableData data)
public long outputFormat()
public boolean requiresSecureCoding()
requiresSecureCoding in class NSCoderpublic void setClassNameForClass(java.lang.String codedName,
org.moe.natj.objc.Class cls)
public void setDelegate_unsafe(NSKeyedArchiverDelegate value)
public void setDelegate(NSKeyedArchiverDelegate value)
public void setOutputFormat(long value)
public void setRequiresSecureCoding(boolean value)
public static NSData archivedDataWithRootObjectRequiringSecureCodingError(java.lang.Object object, boolean requiresSecureCoding, org.moe.natj.general.ptr.Ptr<NSError> error)
If \c NSSecureCoding cannot be used, \c requiresSecureCoding may be turned off here; for improved security, however, \c requiresSecureCoding should be left enabled whenever possible. \c requiresSecureCoding ensures that all encoded objects conform to \c NSSecureCoding, preventing the possibility of encoding objects which cannot be decoded later.
If the object graph cannot be encoded, returns \c nil and sets the \c error out parameter.
public NSKeyedArchiver initRequiringSecureCoding(boolean requiresSecureCoding)
If \c NSSecureCoding cannot be used, \c requiresSecureCoding may be turned off here; for improved security, however, \c requiresSecureCoding should be left enabled whenever possible. \c requiresSecureCoding ensures that all encoded objects conform to \c NSSecureCoding, preventing the possibility of encoding objects which cannot be decoded later.
To produce archives whose structure matches those previously encoded using \c +archivedDataWithRootObject, encode the top-level object in your archive for the \c NSKeyedArchiveRootObjectKey.