|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rococoa.cocoa.foundation.NSObject
org.rococoa.cocoa.foundation.NSFileManager
public abstract class NSFileManager
This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.
| Nested Class Summary | |
|---|---|
static class |
NSFileManager._class_
|
| Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject |
|---|
NSObject._static_ |
| Constructor Summary | |
|---|---|
NSFileManager()
|
|
| Method Summary | |
|---|---|
static NSFileManager |
alloc()
|
abstract NSDictionary |
attributesOfFileSystemForPath_error(NSString path,
PointerByReference error)
attributesOfFileSystemForPath:error: returns an NSDictionary of key/value pairs containing the attributes of the filesystem containing the provided path. |
abstract NSDictionary |
attributesOfItemAtPath_error(NSString path,
PointerByReference error)
attributesOfItemAtPath:error: returns an NSDictionary of key/value pairs containing the attributes of the item (file, directory, symlink, etc.) at the path in question. |
abstract boolean |
changeCurrentDirectoryPath(NSString path)
Original signature : -(BOOL)changeCurrentDirectoryPath:(NSString*)native declaration : NSFileManager.h:181 |
abstract boolean |
changeFileAttributes_atPath(NSDictionary attributes,
NSString path)
Original signature : -(BOOL)changeFileAttributes:(NSDictionary*) atPath:(NSString*)native declaration : NSFileManager.h:164 |
abstract NSArray |
componentsToDisplayForPath(NSString path)
componentsToDisplayForPath: returns an NSArray of display names for the path provided. |
abstract NSData |
contentsAtPath(NSString path)
These methods are provided here for compatibility. |
abstract boolean |
contentsEqualAtPath_andPath(NSString path1,
NSString path2)
-contentsEqualAtPath:andPath: does not take into account data stored in the resource fork or filesystem extended attributes. |
abstract NSArray |
contentsOfDirectoryAtPath_error(NSString path,
PointerByReference error)
contentsOfDirectoryAtPath:error: returns an NSArray of NSStrings representing the filenames of the items in the directory. |
abstract NSArray |
contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error(NSURL url,
NSArray keys,
NSUInteger mask,
PointerByReference error)
-contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error: returns an NSArray of NSURLs identifying the the directory entries. |
abstract boolean |
copyItemAtPath_toPath_error(NSString srcPath,
NSString dstPath,
PointerByReference error)
These methods replace their non-error returning counterparts below. |
abstract boolean |
copyItemAtURL_toURL_error(NSURL srcURL,
NSURL dstURL,
PointerByReference error)
These methods are URL-taking equivalents of the four methods above. |
abstract boolean |
copyPath_toPath_handler(NSString src,
NSString dest,
ObjCObject handler)
Original signature : -(BOOL)copyPath:(NSString*) toPath:(NSString*) handler:(id)native declaration : NSFileManager.h:173 |
abstract boolean |
createDirectoryAtPath_attributes(NSString path,
NSDictionary attributes)
Original signature : -(BOOL)createDirectoryAtPath:(NSString*) attributes:(NSDictionary*)native declaration : NSFileManager.h:169 |
abstract boolean |
createDirectoryAtPath_withIntermediateDirectories_attributes_error(NSString path,
boolean createIntermediates,
NSDictionary attributes,
PointerByReference error)
createDirectoryAtPath:withIntermediateDirectories:attributes:error: creates a directory at the specified path. |
abstract boolean |
createFileAtPath_contents_attributes(NSString path,
NSData data,
NSDictionary attr)
Original signature : -(BOOL)createFileAtPath:(NSString*) contents:(NSData*) attributes:(NSDictionary*)native declaration : NSFileManager.h:225 |
abstract boolean |
createSymbolicLinkAtPath_pathContent(NSString path,
NSString otherpath)
Original signature : -(BOOL)createSymbolicLinkAtPath:(NSString*) pathContent:(NSString*)native declaration : NSFileManager.h:168 |
abstract boolean |
createSymbolicLinkAtPath_withDestinationPath_error(NSString path,
NSString destPath,
PointerByReference error)
createSymbolicLinkAtPath:withDestination:error: returns YES if the symbolic link that point at 'destPath' was able to be created at the location specified by 'path'. |
abstract NSString |
currentDirectoryPath()
Process working directory management. |
static NSFileManager |
defaultManager()
Returns the default singleton instance. |
abstract NSObject |
delegate()
Original signature : -(id)delegatenative declaration : NSFileManager.h:95 |
abstract NSString |
destinationOfSymbolicLinkAtPath_error(NSString path,
PointerByReference error)
destinationOfSymbolicLinkAtPath:error: returns an NSString containing the path of the item pointed at by the symlink specified by 'path'. |
abstract NSArray |
directoryContentsAtPath(NSString path)
Original signature : -(NSArray*)directoryContentsAtPath:(NSString*)native declaration : NSFileManager.h:165 |
abstract NSString |
displayNameAtPath(NSString path)
displayNameAtPath: returns an NSString suitable for presentation to the user. |
abstract NSDirectoryEnumerator |
enumeratorAtPath(NSString path)
enumeratorAtPath: returns an NSDirectoryEnumerator rooted at the provided path. |
abstract NSDictionary |
fileAttributesAtPath_traverseLink(NSString path,
boolean yorn)
The following methods are deprecated on Mac OS X 10.5. |
abstract boolean |
fileExistsAtPath_isDirectory(NSString path,
boolean isDirectory)
Original signature : -(BOOL)fileExistsAtPath:(NSString*) isDirectory:(BOOL*)native declaration : NSFileManager.h:186 |
abstract boolean |
fileExistsAtPath(NSString path)
The following methods are of limited utility. |
abstract NSDictionary |
fileSystemAttributesAtPath(NSString path)
Original signature : -(NSDictionary*)fileSystemAttributesAtPath:(NSString*)native declaration : NSFileManager.h:166 |
abstract String |
fileSystemRepresentationWithPath(NSString path)
fileSystemRepresentationWithPath: returns an array of characters suitable for passing to lower-level POSIX style APIs. |
static NSFileManager._class_ |
getNSClass()
|
abstract boolean |
isDeletableFileAtPath(NSString path)
Original signature : -(BOOL)isDeletableFileAtPath:(NSString*)native declaration : NSFileManager.h:190 |
abstract boolean |
isExecutableFileAtPath(NSString path)
Original signature : -(BOOL)isExecutableFileAtPath:(NSString*)native declaration : NSFileManager.h:189 |
abstract boolean |
isReadableFileAtPath(NSString path)
Original signature : -(BOOL)isReadableFileAtPath:(NSString*)native declaration : NSFileManager.h:187 |
abstract boolean |
isWritableFileAtPath(NSString path)
Original signature : -(BOOL)isWritableFileAtPath:(NSString*)native declaration : NSFileManager.h:188 |
abstract boolean |
linkItemAtPath_toPath_error(NSString srcPath,
NSString dstPath,
PointerByReference error)
Original signature : -(BOOL)linkItemAtPath:(NSString*) toPath:(NSString*) error:(NSError**)native declaration : NSFileManager.h:149 |
abstract boolean |
linkItemAtURL_toURL_error(NSURL srcURL,
NSURL dstURL,
PointerByReference error)
Original signature : -(BOOL)linkItemAtURL:(NSURL*) toURL:(NSURL*) error:(NSError**)native declaration : NSFileManager.h:158 |
abstract boolean |
linkPath_toPath_handler(NSString src,
NSString dest,
ObjCObject handler)
Original signature : -(BOOL)linkPath:(NSString*) toPath:(NSString*) handler:(id)native declaration : NSFileManager.h:172 |
abstract NSArray |
mountedVolumeURLsIncludingResourceValuesForKeys_options(NSArray propertyKeys,
NSUInteger options)
-mountedVolumeURLsIncludingResourceValuesForKeys:options: returns an NSArray of NSURLs locating the mounted volumes available on the computer. |
abstract boolean |
moveItemAtPath_toPath_error(NSString srcPath,
NSString dstPath,
PointerByReference error)
Original signature : -(BOOL)moveItemAtPath:(NSString*) toPath:(NSString*) error:(NSError**)native declaration : NSFileManager.h:148 |
abstract boolean |
moveItemAtURL_toURL_error(NSURL srcURL,
NSURL dstURL,
PointerByReference error)
Original signature : -(BOOL)moveItemAtURL:(NSURL*) toURL:(NSURL*) error:(NSError**)native declaration : NSFileManager.h:157 |
abstract boolean |
movePath_toPath_handler(NSString src,
NSString dest,
ObjCObject handler)
Original signature : -(BOOL)movePath:(NSString*) toPath:(NSString*) handler:(id)native declaration : NSFileManager.h:174 |
static NSFileManager |
new_()
|
abstract NSString |
pathContentOfSymbolicLinkAtPath(NSString path)
Original signature : -(NSString*)pathContentOfSymbolicLinkAtPath:(NSString*)native declaration : NSFileManager.h:167 |
abstract boolean |
removeFileAtPath_handler(NSString path,
ObjCObject handler)
Original signature : -(BOOL)removeFileAtPath:(NSString*) handler:(id)native declaration : NSFileManager.h:175 |
abstract boolean |
removeItemAtPath_error(NSString path,
PointerByReference error)
Original signature : -(BOOL)removeItemAtPath:(NSString*) error:(NSError**)native declaration : NSFileManager.h:150 |
abstract boolean |
removeItemAtURL_error(NSURL URL,
PointerByReference error)
Original signature : -(BOOL)removeItemAtURL:(NSURL*) error:(NSError**)native declaration : NSFileManager.h:159 |
abstract boolean |
replaceItemAtURL_withItemAtURL_backupItemName_options_resultingItemURL_error(NSURL originalItemURL,
NSURL newItemURL,
NSString backupItemName,
NSUInteger options,
PointerByReference resultingURL,
PointerByReference error)
-replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error: is for developers who wish to perform a safe-save without using the full NSDocument machinery that is available in the AppKit. |
abstract boolean |
setAttributes_ofItemAtPath_error(NSDictionary attributes,
NSString path,
PointerByReference error)
setAttributes:ofItemAtPath:error: returns YES when the attributes specified in the 'attributes' dictionary are set successfully on the item specified by 'path'. |
abstract void |
setDelegate(ObjCObject delegate)
Instances of NSFileManager may now have delegates. |
abstract NSString |
stringWithFileSystemRepresentation_length(Pointer str,
NSUInteger len)
Deprecated. use the safer methods stringWithFileSystemRepresentation_length(java.lang.String, org.rococoa.cocoa.foundation.NSUInteger) and stringWithFileSystemRepresentation_length(com.sun.jna.Pointer, org.rococoa.cocoa.foundation.NSUInteger) instead |
abstract NSString |
stringWithFileSystemRepresentation_length(String str,
NSUInteger len)
stringWithFileSystemRepresentation:length: returns an NSString created from an array of bytes that are in the filesystem representation. |
abstract NSArray |
subpathsAtPath(NSString path)
subpathsAtPath: returns an NSArray of all contents and subpaths recursively from the provided path. |
abstract NSArray |
subpathsOfDirectoryAtPath_error(NSString path,
PointerByReference error)
subpathsOfDirectoryAtPath:error: returns an NSArray of NSStrings represeting the filenames of the items in the specified directory and all its subdirectories recursively. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.rococoa.ObjCObject |
|---|
id |
| Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject |
|---|
autorelease, class_, conformsToProtocol, hash, isEqual, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone |
| Constructor Detail |
|---|
public NSFileManager()
| Method Detail |
|---|
public static NSFileManager defaultManager()
+(NSFileManager*)defaultManager
public abstract NSArray mountedVolumeURLsIncludingResourceValuesForKeys_options(NSArray propertyKeys,
NSUInteger options)
-(NSArray*)mountedVolumeURLsIncludingResourceValuesForKeys:(NSArray*) options:(NSVolumeEnumerationOptions)
public abstract NSArray contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error(NSURL url,
NSArray keys,
NSUInteger mask,
PointerByReference error)
-(NSArray*)contentsOfDirectoryAtURL:(NSURL*) includingPropertiesForKeys:(NSArray*) options:(NSDirectoryEnumerationOptions) error:(NSError**)
public abstract void setDelegate(ObjCObject delegate)
-(void)setDelegate:(id)
public abstract NSObject delegate()
-(id)delegate
public abstract boolean setAttributes_ofItemAtPath_error(NSDictionary attributes,
NSString path,
PointerByReference error)
-(BOOL)setAttributes:(NSDictionary*) ofItemAtPath:(NSString*) error:(NSError**)
public abstract boolean createDirectoryAtPath_withIntermediateDirectories_attributes_error(NSString path,
boolean createIntermediates,
NSDictionary attributes,
PointerByReference error)
-(BOOL)createDirectoryAtPath:(NSString*) withIntermediateDirectories:(BOOL) attributes:(NSDictionary*) error:(NSError**)
public abstract NSArray contentsOfDirectoryAtPath_error(NSString path,
PointerByReference error)
-(NSArray*)contentsOfDirectoryAtPath:(NSString*) error:(NSError**)
public abstract NSArray subpathsOfDirectoryAtPath_error(NSString path,
PointerByReference error)
-(NSArray*)subpathsOfDirectoryAtPath:(NSString*) error:(NSError**)
public abstract NSDictionary attributesOfItemAtPath_error(NSString path,
PointerByReference error)
-(NSDictionary*)attributesOfItemAtPath:(NSString*) error:(NSError**)
public abstract NSDictionary attributesOfFileSystemForPath_error(NSString path,
PointerByReference error)
-(NSDictionary*)attributesOfFileSystemForPath:(NSString*) error:(NSError**)
public abstract boolean createSymbolicLinkAtPath_withDestinationPath_error(NSString path,
NSString destPath,
PointerByReference error)
-(BOOL)createSymbolicLinkAtPath:(NSString*) withDestinationPath:(NSString*) error:(NSError**)
public abstract NSString destinationOfSymbolicLinkAtPath_error(NSString path,
PointerByReference error)
-(NSString*)destinationOfSymbolicLinkAtPath:(NSString*) error:(NSError**)
public abstract boolean copyItemAtPath_toPath_error(NSString srcPath,
NSString dstPath,
PointerByReference error)
-(BOOL)copyItemAtPath:(NSString*) toPath:(NSString*) error:(NSError**)
public abstract boolean moveItemAtPath_toPath_error(NSString srcPath,
NSString dstPath,
PointerByReference error)
-(BOOL)moveItemAtPath:(NSString*) toPath:(NSString*) error:(NSError**)
public abstract boolean linkItemAtPath_toPath_error(NSString srcPath,
NSString dstPath,
PointerByReference error)
-(BOOL)linkItemAtPath:(NSString*) toPath:(NSString*) error:(NSError**)
public abstract boolean removeItemAtPath_error(NSString path,
PointerByReference error)
-(BOOL)removeItemAtPath:(NSString*) error:(NSError**)
public abstract boolean copyItemAtURL_toURL_error(NSURL srcURL,
NSURL dstURL,
PointerByReference error)
-(BOOL)copyItemAtURL:(NSURL*) toURL:(NSURL*) error:(NSError**)
public abstract boolean moveItemAtURL_toURL_error(NSURL srcURL,
NSURL dstURL,
PointerByReference error)
-(BOOL)moveItemAtURL:(NSURL*) toURL:(NSURL*) error:(NSError**)
public abstract boolean linkItemAtURL_toURL_error(NSURL srcURL,
NSURL dstURL,
PointerByReference error)
-(BOOL)linkItemAtURL:(NSURL*) toURL:(NSURL*) error:(NSError**)
public abstract boolean removeItemAtURL_error(NSURL URL,
PointerByReference error)
-(BOOL)removeItemAtURL:(NSURL*) error:(NSError**)
public abstract NSDictionary fileAttributesAtPath_traverseLink(NSString path,
boolean yorn)
-(NSDictionary*)fileAttributesAtPath:(NSString*) traverseLink:(BOOL)
public abstract boolean changeFileAttributes_atPath(NSDictionary attributes,
NSString path)
-(BOOL)changeFileAttributes:(NSDictionary*) atPath:(NSString*)
public abstract NSArray directoryContentsAtPath(NSString path)
-(NSArray*)directoryContentsAtPath:(NSString*)
public abstract NSDictionary fileSystemAttributesAtPath(NSString path)
-(NSDictionary*)fileSystemAttributesAtPath:(NSString*)
public abstract NSString pathContentOfSymbolicLinkAtPath(NSString path)
-(NSString*)pathContentOfSymbolicLinkAtPath:(NSString*)
public abstract boolean createSymbolicLinkAtPath_pathContent(NSString path,
NSString otherpath)
-(BOOL)createSymbolicLinkAtPath:(NSString*) pathContent:(NSString*)
public abstract boolean createDirectoryAtPath_attributes(NSString path,
NSDictionary attributes)
-(BOOL)createDirectoryAtPath:(NSString*) attributes:(NSDictionary*)
public abstract boolean linkPath_toPath_handler(NSString src,
NSString dest,
ObjCObject handler)
-(BOOL)linkPath:(NSString*) toPath:(NSString*) handler:(id)
public abstract boolean copyPath_toPath_handler(NSString src,
NSString dest,
ObjCObject handler)
-(BOOL)copyPath:(NSString*) toPath:(NSString*) handler:(id)
public abstract boolean movePath_toPath_handler(NSString src,
NSString dest,
ObjCObject handler)
-(BOOL)movePath:(NSString*) toPath:(NSString*) handler:(id)
public abstract boolean removeFileAtPath_handler(NSString path,
ObjCObject handler)
-(BOOL)removeFileAtPath:(NSString*) handler:(id)
public abstract NSString currentDirectoryPath()
-(NSString*)currentDirectoryPath
public abstract boolean changeCurrentDirectoryPath(NSString path)
-(BOOL)changeCurrentDirectoryPath:(NSString*)
public abstract boolean fileExistsAtPath(NSString path)
-(BOOL)fileExistsAtPath:(NSString*)
public abstract boolean fileExistsAtPath_isDirectory(NSString path,
boolean isDirectory)
-(BOOL)fileExistsAtPath:(NSString*) isDirectory:(BOOL*)
public abstract boolean isReadableFileAtPath(NSString path)
-(BOOL)isReadableFileAtPath:(NSString*)
public abstract boolean isWritableFileAtPath(NSString path)
-(BOOL)isWritableFileAtPath:(NSString*)
public abstract boolean isExecutableFileAtPath(NSString path)
-(BOOL)isExecutableFileAtPath:(NSString*)
public abstract boolean isDeletableFileAtPath(NSString path)
-(BOOL)isDeletableFileAtPath:(NSString*)
public abstract boolean contentsEqualAtPath_andPath(NSString path1,
NSString path2)
-(BOOL)contentsEqualAtPath:(NSString*) andPath:(NSString*)
public abstract NSString displayNameAtPath(NSString path)
-(NSString*)displayNameAtPath:(NSString*)
public abstract NSArray componentsToDisplayForPath(NSString path)
-(NSArray*)componentsToDisplayForPath:(NSString*)
public abstract NSDirectoryEnumerator enumeratorAtPath(NSString path)
-(NSDirectoryEnumerator*)enumeratorAtPath:(NSString*)
public abstract NSArray subpathsAtPath(NSString path)
-(NSArray*)subpathsAtPath:(NSString*)
public abstract NSData contentsAtPath(NSString path)
-(NSData*)contentsAtPath:(NSString*)
public abstract boolean createFileAtPath_contents_attributes(NSString path,
NSData data,
NSDictionary attr)
-(BOOL)createFileAtPath:(NSString*) contents:(NSData*) attributes:(NSDictionary*)
public abstract String fileSystemRepresentationWithPath(NSString path)
-(const char*)fileSystemRepresentationWithPath:(NSString*)
@Deprecated
public abstract NSString stringWithFileSystemRepresentation_length(Pointer str,
NSUInteger len)
stringWithFileSystemRepresentation_length(java.lang.String, org.rococoa.cocoa.foundation.NSUInteger) and stringWithFileSystemRepresentation_length(com.sun.jna.Pointer, org.rococoa.cocoa.foundation.NSUInteger) instead
-(NSString*)stringWithFileSystemRepresentation:(const char*) length:(NSUInteger)
public abstract NSString stringWithFileSystemRepresentation_length(String str,
NSUInteger len)
-(NSString*)stringWithFileSystemRepresentation:(const char*) length:(NSUInteger)
public abstract boolean replaceItemAtURL_withItemAtURL_backupItemName_options_resultingItemURL_error(NSURL originalItemURL,
NSURL newItemURL,
NSString backupItemName,
NSUInteger options,
PointerByReference resultingURL,
PointerByReference error)
-(BOOL)replaceItemAtURL:(NSURL*) withItemAtURL:(NSURL*) backupItemName:(NSString*) options:(NSFileManagerItemReplacementOptions) resultingItemURL:(NSURL**) error:(NSError**)
public static NSFileManager alloc()
public static NSFileManager new_()
public static NSFileManager._class_ getNSClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||