public class NSFileWrapper extends NSObject implements NSSecureCoding
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
NSFileWrapper(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
java.lang.String |
addFileWrapper(NSFileWrapper child)
Add a file wrapper to the receiver's children and return the file name that uniquely identifies it among the receiver's children.
|
java.lang.String |
addRegularFileWithContentsPreferredFilename(NSData data,
java.lang.String fileName)
A convenience method.
|
static NSFileWrapper |
alloc() |
static NSFileWrapper |
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 |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
encodeWithCoder(NSCoder coder) |
NSDictionary<java.lang.String,?> |
fileAttributes()
The file attributes, in a dictionary of the same sort as those returned by -[NSFileManager attributesOfItemAtPath:error:].
|
java.lang.String |
filename()
The actual file name.
|
NSDictionary<java.lang.String,? extends NSFileWrapper> |
fileWrappers()
Return a dictionary whose values are the receiver's children and whose keys are the unique file name that has been assigned to each one.
|
static long |
hash_static() |
NSFileWrapper |
init() |
NSFileWrapper |
initDirectoryWithFileWrappers(NSDictionary<java.lang.String,? extends NSFileWrapper> childrenByPreferredName)
A designated initializer for creating an instance for which -isDirectory returns YES.
|
NSFileWrapper |
initRegularFileWithContents(NSData contents)
A designated initializer for creating an instance for which -isRegularFile returns YES.
|
NSFileWrapper |
initSymbolicLinkWithDestinationURL(NSURL url)
A designated initializer for creating an instance for which -isSymbolicLink returns YES.
|
NSFileWrapper |
initWithCoder(NSCoder inCoder)
NS_DESIGNATED_INITIALIZER
|
NSFileWrapper |
initWithSerializedRepresentation(NSData serializeRepresentation)
A designated initializer.
|
NSFileWrapper |
initWithURLOptionsError(NSURL url,
long options,
org.moe.natj.general.ptr.Ptr<NSError> outError)
A designated initializer for creating an instance whose kind (directory, regular file, or symbolic link) is determined based on what the URL locates.
|
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) |
boolean |
isDirectory()
What kind of file wrapper it is.
|
boolean |
isRegularFile() |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
boolean |
isSymbolicLink() |
java.lang.String |
keyForFileWrapper(NSFileWrapper child)
Return the unique file name that has been assigned to a child or nil if it is not a child of the receiver.
|
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
boolean |
matchesContentsOfURL(NSURL url)
Whether the receiver matches the directory, regular file, or symbolic link that is located by the URL.
|
static NSFileWrapper |
new_objc() |
java.lang.String |
preferredFilename()
The file name that is "preferred." When the receiver is added to a parent directory file wrapper the parent will attempt to use this name as the key into its dictionary of children.
|
boolean |
readFromURLOptionsError(NSURL url,
long options,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Recursively reread the entire contents of the receiver from the specified location, and return YES if successful.
|
NSData |
regularFileContents()
Return the receiver's contents.
|
void |
removeFileWrapper(NSFileWrapper child)
Remove a file wrapper from the receiver's children.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
NSData |
serializedRepresentation()
Return an NSData suitable for passing to -initWithSerializedRepresentation:.
|
void |
setFileAttributes(NSDictionary<java.lang.String,?> value)
The file attributes, in a dictionary of the same sort as those returned by -[NSFileManager attributesOfItemAtPath:error:].
|
void |
setFilename(java.lang.String value)
The actual file name.
|
void |
setPreferredFilename(java.lang.String value)
The file name that is "preferred." When the receiver is added to a parent directory file wrapper the parent will attempt to use this name as the key into its dictionary of children.
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
NSURL |
symbolicLinkDestinationURL()
Return the destination link of the receiver.
|
static long |
version_static() |
boolean |
writeToURLOptionsOriginalContentsURLError(NSURL url,
long options,
NSURL originalContentsURL,
org.moe.natj.general.ptr.Ptr<NSError> outError)
Recursively write the entire contents of the receiver at the specified location, and return YES if successful.
|
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, 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 NSFileWrapper alloc()
public static NSFileWrapper 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 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 NSFileWrapper 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 setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public java.lang.String addFileWrapper(NSFileWrapper child)
public java.lang.String addRegularFileWithContentsPreferredFilename(NSData data, java.lang.String fileName)
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic NSDictionary<java.lang.String,?> fileAttributes()
public NSDictionary<java.lang.String,? extends NSFileWrapper> fileWrappers()
public java.lang.String filename()
public NSFileWrapper init()
public NSFileWrapper initDirectoryWithFileWrappers(NSDictionary<java.lang.String,? extends NSFileWrapper> childrenByPreferredName)
public NSFileWrapper initRegularFileWithContents(NSData contents)
public NSFileWrapper initSymbolicLinkWithDestinationURL(NSURL url)
public NSFileWrapper initWithCoder(NSCoder inCoder)
NSCodinginitWithCoder in interface NSCodingpublic NSFileWrapper initWithSerializedRepresentation(NSData serializeRepresentation)
public NSFileWrapper initWithURLOptionsError(NSURL url, long options, org.moe.natj.general.ptr.Ptr<NSError> outError)
public boolean isDirectory()
public boolean isRegularFile()
public boolean isSymbolicLink()
public java.lang.String keyForFileWrapper(NSFileWrapper child)
public boolean matchesContentsOfURL(NSURL url)
public java.lang.String preferredFilename()
Some instances of NSFileWrapper may be created without a preferredFilename (e.g. -initDirectoryWithFileWrappers: or -initRegularFileWithContents:), meaning preferredFilename may be nil. However, setting nil is never allowed and will result in an exception.
public boolean readFromURLOptionsError(NSURL url, long options, org.moe.natj.general.ptr.Ptr<NSError> outError)
public NSData regularFileContents()
public void removeFileWrapper(NSFileWrapper child)
public NSData serializedRepresentation()
public void setFileAttributes(NSDictionary<java.lang.String,?> value)
public void setFilename(java.lang.String value)
public void setPreferredFilename(java.lang.String value)
Some instances of NSFileWrapper may be created without a preferredFilename (e.g. -initDirectoryWithFileWrappers: or -initRegularFileWithContents:), meaning preferredFilename may be nil. However, setting nil is never allowed and will result in an exception.
public NSURL symbolicLinkDestinationURL()
public boolean writeToURLOptionsOriginalContentsURLError(NSURL url, long options, NSURL originalContentsURL, org.moe.natj.general.ptr.Ptr<NSError> outError)
public static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCoding