|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of FileObject in org.openide.filesystems |
Methods in org.openide.filesystems that return FileObject | |
static FileObject[] |
URLMapper.findFileObjects(URL url)
Deprecated. Use URLMapper.findFileObject(java.net.URL) instead. |
static FileObject |
URLMapper.findFileObject(URL url)
Find an appropiate instance of FileObject that addresses this url |
abstract FileObject[] |
URLMapper.getFileObjects(URL url)
Get an array of FileObjects for this url. |
FileObject |
Repository.find(String aPackage,
String name,
String ext)
Deprecated. Please use the ClassPath API instead. |
FileObject |
Repository.findResource(String name)
Deprecated. Please use the ClassPath API instead. |
FileObject |
MultiFileSystem.getRoot()
Root of the filesystem. |
FileObject |
MultiFileSystem.find(String aPackage,
String name,
String ext)
|
FileObject |
MultiFileSystem.findResource(String name)
|
protected FileObject |
MultiFileSystem.findResourceOn(FileSystem fs,
String res)
Finds a resource on given filesystem. |
static FileObject |
FileUtil.copyFile(FileObject source,
FileObject destFolder,
String newName,
String newExt)
Copies file to the selected folder. |
static FileObject |
FileUtil.copyFile(FileObject source,
FileObject destFolder,
String newName)
Copies file to the selected folder. |
static FileObject |
FileUtil.moveFile(FileObject source,
FileObject destFolder,
String newName)
Moves file to the selected folder. |
static FileObject |
FileUtil.createFolder(FileObject folder,
String name)
Returns a folder on given filesystem if such a folder exists. |
static FileObject |
FileUtil.createData(FileObject folder,
String name)
Returns a data file on given filesystem if such a data file exists. |
static FileObject |
FileUtil.toFileObject(File file)
Converts a disk file to a matching file object. |
static FileObject[] |
FileUtil.fromFile(File file)
Deprecated. Use FileUtil.toFileObject(java.io.File) instead. |
static FileObject |
FileUtil.findBrother(FileObject fo,
String ext)
Finds brother file with same base name but different extension. |
static FileObject |
FileUtil.getArchiveRoot(FileObject fo)
Returns a FileObject representing the root folder of an archive. |
static FileObject |
FileUtil.getArchiveFile(FileObject fo)
Returns a FileObject representing an archive file containg the FileObject given by the parameter. |
FileObject |
FileSystemCapability.findResource(String resName)
Deprecated. Please use the ClassPath API instead. |
FileObject |
FileSystemCapability.find(String aPackage,
String name,
String ext)
Deprecated. Please use the ClassPath API instead. |
abstract FileObject |
FileSystem.getRoot()
Getter for root folder in the filesystem. |
FileObject |
FileSystem.find(String aPackage,
String name,
String ext)
Deprecated. Please use the ClassPath API instead, or use FileSystem.findResource(java.lang.String) if you are not interested in classpaths. |
abstract FileObject |
FileSystem.findResource(String name)
Finds a file given its full resource path. |
FileObject |
FileObject.copy(FileObject target,
String name,
String ext)
Copies this file. |
FileObject |
FileObject.move(FileLock lock,
FileObject target,
String name,
String ext)
Moves this file. |
abstract FileObject |
FileObject.getParent()
Get parent folder. |
abstract FileObject[] |
FileObject.getChildren()
Get all children of this folder (files and subfolders). |
abstract FileObject |
FileObject.getFileObject(String name,
String ext)
Retrieve file or folder contained in this folder by name. |
FileObject |
FileObject.getFileObject(String relativePath)
Retrieve file or folder relative to a current folder, with a given relative path. |
abstract FileObject |
FileObject.createFolder(String name)
Create a new folder below this one with the specified name. |
abstract FileObject |
FileObject.createData(String name,
String ext)
Create new data file in this folder with the specified name. |
FileObject |
FileObject.createData(String name)
Create new data file in this folder with the specified name. |
FileObject |
FileEvent.getFile()
|
FileObject |
AbstractFileSystem.getRoot()
|
FileObject |
AbstractFileSystem.find(String aPackage,
String name,
String ext)
|
FileObject |
AbstractFileSystem.findResource(String name)
|
protected FileObject |
AbstractFileSystem.refreshRoot()
Instruct the filesystem that the root should change. |
Methods in org.openide.filesystems with parameters of type FileObject | |
protected Reference |
XMLFileSystem.createReference(FileObject fo)
|
static URL |
URLMapper.findURL(FileObject fo,
int type)
Find a good URL for this file object which works according to type: inside this VM inside this machine from networked machines |
abstract URL |
URLMapper.getURL(FileObject fo,
int type)
Get a good URL for this file object which works according to type: inside this VM inside this machine from networked machines The implementation can't use neither FileUtil.toFile(org.openide.filesystems.FileObject) nor FileUtil.toFileObject(java.io.File)
otherwise StackOverflowError maybe thrown. |
protected FileSystem |
MultiFileSystem.findSystem(FileObject fo)
For given file object finds the filesystem that the object is placed on. |
protected static Enumeration |
MultiFileSystem.hiddenFiles(FileObject folder,
boolean rec)
Finds all hidden files on given filesystem. |
protected void |
MultiFileSystem.notifyMigration(FileObject fo)
Notification that a file has migrated from one filesystem to another. |
protected void |
MultiFileSystem.markUnimportant(FileObject fo)
Notification that a file has been marked unimportant. |
abstract String |
MIMEResolver.findMIMEType(FileObject fo)
Resolves FileObject and returns recognized MIME type |
protected Reference |
JarFileSystem.createReference(FileObject fo)
|
static FileObject |
FileUtil.copyFile(FileObject source,
FileObject destFolder,
String newName,
String newExt)
Copies file to the selected folder. |
static FileObject |
FileUtil.copyFile(FileObject source,
FileObject destFolder,
String newName)
Copies file to the selected folder. |
static FileObject |
FileUtil.moveFile(FileObject source,
FileObject destFolder,
String newName)
Moves file to the selected folder. |
static FileObject |
FileUtil.createFolder(FileObject folder,
String name)
Returns a folder on given filesystem if such a folder exists. |
static FileObject |
FileUtil.createData(FileObject folder,
String name)
Returns a data file on given filesystem if such a data file exists. |
static File |
FileUtil.toFile(FileObject fo)
Finds appropriate java.io.File to FileObject if possible. |
static void |
FileUtil.copyAttributes(FileObject source,
FileObject dest)
Copies attributes from one file to another. |
static void |
FileUtil.extractJar(FileObject fo,
InputStream is)
Deprecated. Use of XML filesystem layers generally obsoletes this method. |
static String |
FileUtil.findFreeFileName(FileObject folder,
String name,
String ext)
Finds an unused file name similar to that requested in the same folder. |
static String |
FileUtil.findFreeFolderName(FileObject folder,
String name)
Finds an unused folder name similar to that requested in the same parent folder. |
static String |
FileUtil.getRelativePath(FileObject folder,
FileObject fo)
Gets a relative resource path between folder and fo. |
static FileObject |
FileUtil.findBrother(FileObject fo,
String ext)
Finds brother file with same base name but different extension. |
static String |
FileUtil.getMIMEType(FileObject fo)
Resolves MIME type. |
static boolean |
FileUtil.isParentOf(FileObject folder,
FileObject fo)
Recursively checks whether the file is underneath the folder. |
static String |
FileUtil.getFileDisplayName(FileObject fo)
Get an appropriate display name for a file object. |
static FileObject |
FileUtil.getArchiveRoot(FileObject fo)
Returns a FileObject representing the root folder of an archive. |
static FileObject |
FileUtil.getArchiveFile(FileObject fo)
Returns a FileObject representing an archive file containg the FileObject given by the parameter. |
static boolean |
FileUtil.isArchiveFile(FileObject fo)
Tests if a file represents a JAR or ZIP archive. |
boolean |
FileStatusEvent.hasChanged(FileObject file)
Check whether the given file has been changed. |
FileObject |
FileObject.copy(FileObject target,
String name,
String ext)
Copies this file. |
FileObject |
FileObject.move(FileLock lock,
FileObject target,
String name,
String ext)
Moves this file. |
protected Reference |
AbstractFileSystem.createReference(FileObject fo)
Creates Reference. |
protected Enumeration |
AbstractFileSystem.existingFileObjects(FileObject fo)
For the FileObject specified as parameter, returns the recursive enumeration of existing children fileobjects (both folders and data). |
Constructors in org.openide.filesystems with parameters of type FileObject | |
FileStatusEvent(FileSystem fs,
FileObject file,
boolean icon,
boolean name)
Creates new FileStatusEvent |
|
FileRenameEvent(FileObject src,
String name,
String ext)
Creates new FileRenameEvent . |
|
FileRenameEvent(FileObject src,
FileObject file,
String name,
String ext)
Creates new FileRenameEvent , specifying an event location. |
|
FileRenameEvent(FileObject src,
FileObject file,
String name,
String ext,
boolean expected)
Creates new FileRenameEvent , specifying an event location
and whether the event was expected by the system. |
|
FileEvent(FileObject src)
Creates new FileEvent . |
|
FileEvent(FileObject src,
FileObject file)
Creates new FileEvent , specifying the action object. |
|
FileEvent(FileObject src,
FileObject file,
boolean expected)
Creates new FileEvent , specifying the action object. |
|
FileAttributeEvent(FileObject src,
String name,
Object oldValue,
Object newValue)
Creates new FileAttributeEvent . |
|
FileAttributeEvent(FileObject src,
FileObject file,
String name,
Object oldValue,
Object newValue)
Creates new FileAttributeEvent . |
|
FileAttributeEvent(FileObject src,
FileObject file,
String name,
Object oldValue,
Object newValue,
boolean expected)
Creates new FileAttributeEvent . |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |