Package apple.foundation
Class NSPurgeableData
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.foundation.NSData
-
- apple.foundation.NSMutableData
-
- apple.foundation.NSPurgeableData
-
- All Implemented Interfaces:
CKRecordValue,NSCoding,NSCopying,NSDiscardableContent,NSMutableCopying,NSSecureCoding,NSObject
public class NSPurgeableData extends NSMutableData implements NSDiscardableContent
Purgeable Data ***************
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.foundation.NSData
NSData.Block_enumerateByteRangesUsingBlock, NSData.Block_initWithBytesNoCopyLengthDeallocator
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNSPurgeableData(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()static NSPurgeableDataalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)booleanbeginContentAccess()static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(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.ClassclassForKeyedUnarchiver()static NSPurgeableDatadata()static NSPurgeableDatadataWithBytesLength(org.moe.natj.general.ptr.ConstVoidPtr bytes, long length)static NSPurgeableDatadataWithBytesNoCopyLength(org.moe.natj.general.ptr.VoidPtr bytes, long length)static NSPurgeableDatadataWithBytesNoCopyLengthFreeWhenDone(org.moe.natj.general.ptr.VoidPtr bytes, long length, boolean b)static NSPurgeableDatadataWithCapacity(long aNumItems)static NSPurgeableDatadataWithContentsOfFile(java.lang.String path)static NSPurgeableDatadataWithContentsOfFileOptionsError(java.lang.String path, long readOptionsMask, org.moe.natj.general.ptr.Ptr<NSError> errorPtr)static NSPurgeableDatadataWithContentsOfMappedFile(java.lang.String path)Deprecated.static NSPurgeableDatadataWithContentsOfURL(NSURL url)static NSPurgeableDatadataWithContentsOfURLOptionsError(NSURL url, long readOptionsMask, org.moe.natj.general.ptr.Ptr<NSError> errorPtr)static NSPurgeableDatadataWithData(NSData data)static NSPurgeableDatadataWithLength(long length)static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()voiddiscardContentIfPossible()voidendContentAccess()static longhash_static()NSPurgeableDatainit()NSPurgeableDatainitWithBase64EncodedDataOptions(NSData base64Data, long options)Create an NSData from a Base-64, UTF-8 encoded NSData.NSPurgeableDatainitWithBase64EncodedStringOptions(java.lang.String base64String, long options)Create an NSData from a Base-64 encoded NSString using the given options.NSPurgeableDatainitWithBase64Encoding(java.lang.String base64String)Deprecated.NSPurgeableDatainitWithBytesLength(org.moe.natj.general.ptr.ConstVoidPtr bytes, long length)NSPurgeableDatainitWithBytesNoCopyLength(org.moe.natj.general.ptr.VoidPtr bytes, long length)NSPurgeableDatainitWithBytesNoCopyLengthDeallocator(org.moe.natj.general.ptr.VoidPtr bytes, long length, NSData.Block_initWithBytesNoCopyLengthDeallocator deallocator)NSPurgeableDatainitWithBytesNoCopyLengthFreeWhenDone(org.moe.natj.general.ptr.VoidPtr bytes, long length, boolean b)NSPurgeableDatainitWithCapacity(long capacity)NSPurgeableDatainitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERNSPurgeableDatainitWithContentsOfFile(java.lang.String path)NSPurgeableDatainitWithContentsOfFileOptionsError(java.lang.String path, long readOptionsMask, org.moe.natj.general.ptr.Ptr<NSError> errorPtr)NSPurgeableDatainitWithContentsOfMappedFile(java.lang.String path)Deprecated.NSPurgeableDatainitWithContentsOfURL(NSURL url)NSPurgeableDatainitWithContentsOfURLOptionsError(NSURL url, long readOptionsMask, org.moe.natj.general.ptr.Ptr<NSError> errorPtr)NSPurgeableDatainitWithData(NSData data)NSPurgeableDatainitWithLength(long length)static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisContentDiscarded()static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()static longversion_static()-
Methods inherited from class apple.foundation.NSMutableData
appendBytesLength, appendData, compressUsingAlgorithmError, decompressUsingAlgorithmError, increaseLengthBy, length, mutableBytes, replaceBytesInRangeWithBytes, replaceBytesInRangeWithBytesLength, resetBytesInRange, setData, setLength
-
Methods inherited from class apple.foundation.NSData
base64EncodedDataWithOptions, base64EncodedStringWithOptions, base64Encoding, bytes, compressedDataUsingAlgorithmError, copyWithZone, decompressedDataUsingAlgorithmError, description, encodeWithCoder, enumerateByteRangesUsingBlock, getBytes, getBytesLength, getBytesRange, isEqualToData, mutableCopyWithZone, rangeOfDataOptionsRange, subdataWithRange, writeToFileAtomically, writeToFileOptionsError, writeToURLAtomically, writeToURLOptionsError
-
Methods inherited from class apple.NSObject
accessibilityActivate, 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, 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, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static NSPurgeableData alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
data
public static NSPurgeableData data()
-
dataWithBytesLength
public static NSPurgeableData dataWithBytesLength(org.moe.natj.general.ptr.ConstVoidPtr bytes, long length)
-
dataWithBytesNoCopyLength
public static NSPurgeableData dataWithBytesNoCopyLength(org.moe.natj.general.ptr.VoidPtr bytes, long length)
-
dataWithBytesNoCopyLengthFreeWhenDone
public static NSPurgeableData dataWithBytesNoCopyLengthFreeWhenDone(org.moe.natj.general.ptr.VoidPtr bytes, long length, boolean b)
-
dataWithCapacity
public static NSPurgeableData dataWithCapacity(long aNumItems)
-
dataWithContentsOfFile
public static NSPurgeableData dataWithContentsOfFile(java.lang.String path)
-
dataWithContentsOfFileOptionsError
public static NSPurgeableData dataWithContentsOfFileOptionsError(java.lang.String path, long readOptionsMask, org.moe.natj.general.ptr.Ptr<NSError> errorPtr)
-
dataWithContentsOfMappedFile
@Deprecated public static NSPurgeableData dataWithContentsOfMappedFile(java.lang.String path)
Deprecated.
-
dataWithContentsOfURL
public static NSPurgeableData dataWithContentsOfURL(NSURL url)
-
dataWithContentsOfURLOptionsError
public static NSPurgeableData dataWithContentsOfURLOptionsError(NSURL url, long readOptionsMask, org.moe.natj.general.ptr.Ptr<NSError> errorPtr)
-
dataWithData
public static NSPurgeableData dataWithData(NSData data)
-
dataWithLength
public static NSPurgeableData dataWithLength(long length)
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
version_static
public static long version_static()
-
beginContentAccess
public boolean beginContentAccess()
- Specified by:
beginContentAccessin interfaceNSDiscardableContent
-
discardContentIfPossible
public void discardContentIfPossible()
- Specified by:
discardContentIfPossiblein interfaceNSDiscardableContent
-
endContentAccess
public void endContentAccess()
- Specified by:
endContentAccessin interfaceNSDiscardableContent
-
init
public NSPurgeableData init()
- Overrides:
initin classNSMutableData
-
initWithBase64EncodedDataOptions
public NSPurgeableData initWithBase64EncodedDataOptions(NSData base64Data, long options)
Description copied from class:NSDataCreate an NSData from a Base-64, UTF-8 encoded NSData. By default, returns nil when the input is not recognized as valid Base-64.- Overrides:
initWithBase64EncodedDataOptionsin classNSMutableData
-
initWithBase64EncodedStringOptions
public NSPurgeableData initWithBase64EncodedStringOptions(java.lang.String base64String, long options)
Description copied from class:NSDataCreate an NSData from a Base-64 encoded NSString using the given options. By default, returns nil when the input is not recognized as valid Base-64.- Overrides:
initWithBase64EncodedStringOptionsin classNSMutableData
-
initWithBase64Encoding
@Deprecated public NSPurgeableData initWithBase64Encoding(java.lang.String base64String)
Deprecated.Description copied from class:NSDataThese methods first appeared in NSData.h on OS X 10.9 and iOS 7.0. They are deprecated in the same releases in favor of the methods in the NSDataBase64Encoding category. However, these methods have existed for several releases, so they may be used for applications targeting releases prior to OS X 10.9 and iOS 7.0.- Overrides:
initWithBase64Encodingin classNSMutableData
-
initWithBytesLength
public NSPurgeableData initWithBytesLength(org.moe.natj.general.ptr.ConstVoidPtr bytes, long length)
- Overrides:
initWithBytesLengthin classNSMutableData
-
initWithBytesNoCopyLength
public NSPurgeableData initWithBytesNoCopyLength(org.moe.natj.general.ptr.VoidPtr bytes, long length)
- Overrides:
initWithBytesNoCopyLengthin classNSMutableData
-
initWithBytesNoCopyLengthDeallocator
public NSPurgeableData initWithBytesNoCopyLengthDeallocator(org.moe.natj.general.ptr.VoidPtr bytes, long length, NSData.Block_initWithBytesNoCopyLengthDeallocator deallocator)
- Overrides:
initWithBytesNoCopyLengthDeallocatorin classNSMutableData
-
initWithBytesNoCopyLengthFreeWhenDone
public NSPurgeableData initWithBytesNoCopyLengthFreeWhenDone(org.moe.natj.general.ptr.VoidPtr bytes, long length, boolean b)
- Overrides:
initWithBytesNoCopyLengthFreeWhenDonein classNSMutableData
-
initWithCapacity
public NSPurgeableData initWithCapacity(long capacity)
- Overrides:
initWithCapacityin classNSMutableData
-
initWithCoder
public NSPurgeableData initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classNSMutableData
-
initWithContentsOfFile
public NSPurgeableData initWithContentsOfFile(java.lang.String path)
- Overrides:
initWithContentsOfFilein classNSMutableData
-
initWithContentsOfFileOptionsError
public NSPurgeableData initWithContentsOfFileOptionsError(java.lang.String path, long readOptionsMask, org.moe.natj.general.ptr.Ptr<NSError> errorPtr)
- Overrides:
initWithContentsOfFileOptionsErrorin classNSMutableData
-
initWithContentsOfMappedFile
@Deprecated public NSPurgeableData initWithContentsOfMappedFile(java.lang.String path)
Deprecated.- Overrides:
initWithContentsOfMappedFilein classNSMutableData
-
initWithContentsOfURL
public NSPurgeableData initWithContentsOfURL(NSURL url)
- Overrides:
initWithContentsOfURLin classNSMutableData
-
initWithContentsOfURLOptionsError
public NSPurgeableData initWithContentsOfURLOptionsError(NSURL url, long readOptionsMask, org.moe.natj.general.ptr.Ptr<NSError> errorPtr)
- Overrides:
initWithContentsOfURLOptionsErrorin classNSMutableData
-
initWithData
public NSPurgeableData initWithData(NSData data)
- Overrides:
initWithDatain classNSMutableData
-
initWithLength
public NSPurgeableData initWithLength(long length)
- Overrides:
initWithLengthin classNSMutableData
-
isContentDiscarded
public boolean isContentDiscarded()
- Specified by:
isContentDiscardedin interfaceNSDiscardableContent
-
_supportsSecureCoding
public boolean _supportsSecureCoding()
Description copied from interface:NSSecureCodingThis property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.- Specified by:
_supportsSecureCodingin interfaceNSSecureCoding- Overrides:
_supportsSecureCodingin classNSMutableData
-
-