public class NSKeyedUnarchiver extends NSCoder
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
NSKeyedUnarchiver(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static NSKeyedUnarchiver |
alloc() |
static NSKeyedUnarchiver |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
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 |
classForClassName_static(java.lang.String codedName)
During decoding, the coder first checks with the coder's
own table, then if there was no mapping there, the class's.
|
org.moe.natj.objc.Class |
classForClassName(java.lang.String codedName) |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
boolean |
containsValueForKey(java.lang.String key) |
static java.lang.String |
debugDescription_static() |
boolean |
decodeBoolForKey(java.lang.String key) |
org.moe.natj.general.ptr.ConstBytePtr |
decodeBytesForKeyReturnedLength(java.lang.String key,
org.moe.natj.general.ptr.NUIntPtr lengthp)
returned bytes immutable, and they go away with the unarchiver, not the containing autorelease pool
|
double |
decodeDoubleForKey(java.lang.String key) |
float |
decodeFloatForKey(java.lang.String key) |
int |
decodeInt32ForKey(java.lang.String key) |
long |
decodeInt64ForKey(java.lang.String key) |
int |
decodeIntForKey(java.lang.String key)
may raise a range exception
|
java.lang.Object |
decodeObjectForKey(java.lang.String key) |
long |
decodingFailurePolicy()
Defines the behavior this NSCoder should take on decode failure (i.e.
|
NSKeyedUnarchiverDelegate |
delegate() |
static java.lang.String |
description_static() |
void |
finishDecoding() |
static long |
hash_static() |
NSKeyedUnarchiver |
init() |
NSKeyedUnarchiver |
initForReadingFromDataError(NSData data,
org.moe.natj.general.ptr.Ptr<NSError> error)
Initializes the receiver for decoding an archive previously encoded by \c NSKeyedUnarchiver.
|
NSKeyedUnarchiver |
initForReadingWithData(NSData data) |
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 NSKeyedUnarchiver |
new_objc() |
boolean |
requiresSecureCoding()
Enables secure coding support on this keyed unarchiver.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
static void |
setClassForClassName_static(org.moe.natj.objc.Class cls,
java.lang.String codedName) |
void |
setClassForClassName(org.moe.natj.objc.Class cls,
java.lang.String codedName) |
void |
setDecodingFailurePolicy(long value) |
void |
setDelegate_unsafe(NSKeyedUnarchiverDelegate value) |
void |
setDelegate(NSKeyedUnarchiverDelegate value) |
void |
setRequiresSecureCoding(boolean value)
Enables secure coding support on this keyed unarchiver.
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static NSArray<?> |
unarchivedArrayOfObjectsOfClassesFromDataError(NSSet<? extends org.moe.natj.objc.Class> classes,
NSData data,
org.moe.natj.general.ptr.Ptr<NSError> error)
Decodes the \c NSArray root object from \c data which should be an \c NSArray, containing the given non-collection classes in \c classes (no nested arrays or arrays of dictionaries, etc) from the given archive, previously encoded by \c NSKeyedArchiver.
|
static NSArray<?> |
unarchivedArrayOfObjectsOfClassFromDataError(org.moe.natj.objc.Class cls,
NSData data,
org.moe.natj.general.ptr.Ptr<NSError> error)
Decodes the \c NSArray root object from \c data which should be an \c NSArray
|
static NSDictionary<?,?> |
unarchivedDictionaryWithKeysOfClassesObjectsOfClassesFromDataError(NSSet<? extends org.moe.natj.objc.Class> keyClasses,
NSSet<? extends org.moe.natj.objc.Class> valueClasses,
NSData data,
org.moe.natj.general.ptr.Ptr<NSError> error)
Decodes the \c NSDictionary root object from \c data which should be an \c NSDictionary, with keys of the types given in \c keyClasses and objects of the given non-collection classes in \c objectClasses (no nested dictionaries or other dictionaries contained in the dictionary, etc) from the given archive, previously encoded by \c NSKeyedArchiver.
|
static NSDictionary<?,?> |
unarchivedDictionaryWithKeysOfClassObjectsOfClassFromDataError(org.moe.natj.objc.Class keyCls,
org.moe.natj.objc.Class valueCls,
NSData data,
org.moe.natj.general.ptr.Ptr<NSError> error)
Decodes the \c NSDictionary root object from \c data which should be an \c NSDictionary
|
static java.lang.Object |
unarchivedObjectOfClassesFromDataError(NSSet<? extends org.moe.natj.objc.Class> classes,
NSData data,
org.moe.natj.general.ptr.Ptr<NSError> error)
Decodes the root object of one of the given classes from the given archive, previously encoded by \c NSKeyedArchiver.
|
static java.lang.Object |
unarchivedObjectOfClassFromDataError(org.moe.natj.objc.Class cls,
NSData data,
org.moe.natj.general.ptr.Ptr<NSError> error)
Decodes the root object of the given class from the given archive, previously encoded by \c NSKeyedArchiver.
|
static java.lang.Object |
unarchiveObjectWithData(NSData data) |
static java.lang.Object |
unarchiveObjectWithFile(java.lang.String path) |
static java.lang.Object |
unarchiveTopLevelObjectWithDataError(NSData data,
org.moe.natj.general.ptr.Ptr<NSError> error) |
static long |
version_static() |
allowedClasses, allowsKeyedCoding, decodeArrayOfObjCTypeCountAt, decodeArrayOfObjectsOfClassesForKey, decodeArrayOfObjectsOfClassForKey, decodeBytesWithReturnedLength, decodeCGAffineTransformForKey, decodeCGPointForKey, decodeCGRectForKey, decodeCGSizeForKey, decodeCGVectorForKey, decodeCMTimeForKey, decodeCMTimeMappingForKey, decodeCMTimeRangeForKey, decodeDataObject, decodeDictionaryWithKeysOfClassesObjectsOfClassesForKey, decodeDictionaryWithKeysOfClassObjectsOfClassForKey, decodeDirectionalEdgeInsetsForKey, decodeIntegerForKey, decodeObject, decodeObjectOfClassesForKey, decodeObjectOfClassForKey, decodePropertyListForKey, decodeTopLevelObjectAndReturnError, decodeTopLevelObjectForKeyError, decodeTopLevelObjectOfClassesForKeyError, decodeTopLevelObjectOfClassForKeyError, decodeUIEdgeInsetsForKey, decodeUIOffsetForKey, decodeValueOfObjCTypeAt, decodeValueOfObjCTypeAtSize, decodeValuesOfObjCTypes, encodeArrayOfObjCTypeCountAt, encodeBoolForKey, encodeBycopyObject, encodeByrefObject, encodeBytesLength, encodeBytesLengthForKey, encodeCGAffineTransformForKey, encodeCGPointForKey, encodeCGRectForKey, encodeCGSizeForKey, encodeCGVectorForKey, encodeCMTimeForKey, encodeCMTimeMappingForKey, encodeCMTimeRangeForKey, encodeConditionalObject, encodeConditionalObjectForKey, encodeDataObject, encodeDirectionalEdgeInsetsForKey, encodeDoubleForKey, encodeFloatForKey, encodeInt32ForKey, encodeInt64ForKey, encodeIntegerForKey, encodeIntForKey, encodeObject, encodeObjectForKey, 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 NSKeyedUnarchiver alloc()
public static NSKeyedUnarchiver allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
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 classForClassName_static(java.lang.String codedName)
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
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 NSKeyedUnarchiver 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 setClassForClassName_static(org.moe.natj.objc.Class cls,
java.lang.String codedName)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static java.lang.Object unarchiveObjectWithData(NSData data)
public static java.lang.Object unarchiveObjectWithFile(java.lang.String path)
public static java.lang.Object unarchiveTopLevelObjectWithDataError(NSData data, org.moe.natj.general.ptr.Ptr<NSError> error)
public static long version_static()
public org.moe.natj.objc.Class classForClassName(java.lang.String codedName)
public boolean containsValueForKey(java.lang.String key)
containsValueForKey in class NSCoderpublic boolean decodeBoolForKey(java.lang.String key)
decodeBoolForKey in class NSCoderpublic org.moe.natj.general.ptr.ConstBytePtr decodeBytesForKeyReturnedLength(java.lang.String key,
org.moe.natj.general.ptr.NUIntPtr lengthp)
decodeBytesForKeyReturnedLength in class NSCoderpublic double decodeDoubleForKey(java.lang.String key)
decodeDoubleForKey in class NSCoderpublic float decodeFloatForKey(java.lang.String key)
decodeFloatForKey in class NSCoderpublic int decodeInt32ForKey(java.lang.String key)
decodeInt32ForKey in class NSCoderpublic long decodeInt64ForKey(java.lang.String key)
decodeInt64ForKey in class NSCoderpublic int decodeIntForKey(java.lang.String key)
decodeIntForKey in class NSCoderpublic java.lang.Object decodeObjectForKey(java.lang.String key)
decodeObjectForKey in class NSCoderpublic long decodingFailurePolicy()
NSCoderThe default result of this property is NSDecodingFailurePolicyRaiseException, subclasses can change this to an alternative policy.
decodingFailurePolicy in class NSCoderpublic NSKeyedUnarchiverDelegate delegate()
public void finishDecoding()
public NSKeyedUnarchiver init()
public NSKeyedUnarchiver initForReadingWithData(NSData data)
public boolean requiresSecureCoding()
requiresSecureCoding in class NSCoderpublic void setClassForClassName(org.moe.natj.objc.Class cls,
java.lang.String codedName)
public void setDecodingFailurePolicy(long value)
public void setDelegate_unsafe(NSKeyedUnarchiverDelegate value)
public void setDelegate(NSKeyedUnarchiverDelegate value)
public void setRequiresSecureCoding(boolean value)
public NSKeyedUnarchiver initForReadingFromDataError(NSData data, org.moe.natj.general.ptr.Ptr<NSError> error)
Enables \c requiresSecureCoding by default. If \c NSSecureCoding cannot be used, \c requiresSecureCoding may be turned off manually; for improved security, \c requiresSecureCoding should be left enabled whenever possible.
Sets the unarchiver's \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn.
Returns \c nil if the given data is not valid, and sets the \c error out parameter.
public static java.lang.Object unarchivedObjectOfClassFromDataError(org.moe.natj.objc.Class cls,
NSData data,
org.moe.natj.general.ptr.Ptr<NSError> error)
Enables \c requiresSecureCoding and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn.
Returns \c nil if the given data is not valid or cannot be decoded, and sets the \c error out parameter.
public static java.lang.Object unarchivedObjectOfClassesFromDataError(NSSet<? extends org.moe.natj.objc.Class> classes, NSData data, org.moe.natj.general.ptr.Ptr<NSError> error)
Enables \c requiresSecureCoding and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn.
Returns \c nil if the given data is not valid or cannot be decoded, and sets the \c error out parameter.
public static NSArray<?> unarchivedArrayOfObjectsOfClassFromDataError(org.moe.natj.objc.Class cls, NSData data, org.moe.natj.general.ptr.Ptr<NSError> error)
Enables \c requiresSecureCoding and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn.
Returns \c nil if the given data is not valid or cannot be decoded, and sets the \c error out parameter.
public static NSArray<?> unarchivedArrayOfObjectsOfClassesFromDataError(NSSet<? extends org.moe.natj.objc.Class> classes, NSData data, org.moe.natj.general.ptr.Ptr<NSError> error)
Enables \c requiresSecureCoding and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn.
Returns \c nil if the given data is not valid or cannot be decoded, and sets the \c error out parameter.
public static NSDictionary<?,?> unarchivedDictionaryWithKeysOfClassObjectsOfClassFromDataError(org.moe.natj.objc.Class keyCls, org.moe.natj.objc.Class valueCls, NSData data, org.moe.natj.general.ptr.Ptr<NSError> error)
Enables \c requiresSecureCoding and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn.
Returns \c nil if the given data is not valid or cannot be decoded, and sets the \c error out parameter.
public static NSDictionary<?,?> unarchivedDictionaryWithKeysOfClassesObjectsOfClassesFromDataError(NSSet<? extends org.moe.natj.objc.Class> keyClasses, NSSet<? extends org.moe.natj.objc.Class> valueClasses, NSData data, org.moe.natj.general.ptr.Ptr<NSError> error)
Enables \c requiresSecureCoding and sets the \c decodingFailurePolicy to \c NSDecodingFailurePolicySetErrorAndReturn.
Returns \c nil if the given data is not valid or cannot be decoded, and sets the \c error out parameter.