org.openide.filesystems |
NetBeans internally uses the concept of a
virtual filesystem.
This interface is used by all upper layers of NetBeans to read &
write files, mount & display directories, move and delete files, and
allow external compilation and execution to find libraries correctly.
NetBeans itself implements two filesystems: a local filesystem,
which encapsulates access to the operating system's normal files; and
a JAR filesystem, which
allows users to mount Java Archive Files as if they were read-only
directories.
Using the Filesystems API,
third parties may add support for access to file-like objects stored
in some different manner - for example, in a database or proprietary
object storage system. More commonly, module authors should use this
API whenever they need access to files; then their module should work
automatically with any filesystem supported by NetBeans.
Other capabilities provided by the Filesystems API include locking
files during write operations; listening for changes in a file's
status, so that another part of NetBeans may reflect that change; and
providing support for including the filesystem in the runtime class
path of an external compiler or executor.
|
Java Source File Name | Type | Comment |
AbstractFileObject.java | Class | Implementation of the file object for abstract file system. |
AbstractFileSystem.java | Class | This convenience implementation does much of the hard work of
FileSystem and is generally more pleasant to create
subclasses of.
It caches information about the filesystem in memory and periodically refreshes its content. |
AbstractFolder.java | Class | Implementation of the file object that simplyfies common
tasks with hierarchy of objects for AbstractFileObject and MultiFileObject. |
AtomicActionTest.java | Class | |
AttributesTestHidden.java | Class | |
DefaultAttributes.java | Class | Implementation of AbstractFileSystem.Attr using a special file
in each folder for holding attributes. |
EnvironmentNotSupportedException.java | Class | Exception thrown to signal that external
execution and compilation is not supported on a given filesystem. |
EventControl.java | Class | |
ExternalUtil.java | Class | |
FCLSupport.java | Class | Support class for impl. |
FileAlreadyLockedException.java | Class | Exception raised when a file is already locked. |
FileAttributeEvent.java | Class | Event used to listen on filesystem attribute changes. |
FileChangeAdapter.java | Class | Adapter for changes in FileObject s. |
FileChangeListener.java | Interface | Listener for changes in FileObject s. |
FileEvent.java | Class | Event for listening on filesystem changes. |
FileLock.java | Class | Represents an acquired lock on a FileObject .
Typical usage includes locking the file in the editor on first
modification, and then using this object to ensure exclusive access when
overwriting the file (saving) by using
FileObject.getOutputStream .
Also used for renames, deletes, &c.
Note that such locks are only used to protect against concurrent write accesses,
and are not used for read operations (i.e. |
FileObject.java | Class | This is the base for all implementations of file objects on a filesystem. |
FileObject75826Test.java | Class | |
FileObjectTestHid.java | Class | |
FileRenameEvent.java | Class | Event indicating a file rename. |
FileStateInvalidException.java | Class | Signals that the file object is somehow corrupted. |
FileStatusEvent.java | Class | Event describing a change in annotation of files. |
FileStatusListener.java | Interface | Listener to changes in annotation of file objects. |
FileSystem.java | Class | Interface that provides basic information about a virtual
filesystem. |
FileSystemCapability.java | Class | This class defines the capabilities of a filesystem to
take part in different operations. |
FileSystemFactoryHid.java | Class | |
FileSystemSuite.java | Class | |
FileSystemTestHid.java | Class | |
FileURL.java | Class | Special URL connection directly accessing an internal file object. |
FileUtil.java | Class | Common utilities for handling files. |
FileUtilTest.java | Class | |
FileUtilTestHidden.java | Class | |
FSException.java | Class | Localized IOException for filesystems. |
IsArchiveFileTest.java | Class | |
JarFileSystem.java | Class | A virtual filesystem based on a JAR archive.
For historical reasons many AbstractFileSystem.* methods are implemented
as protected in this class. |
JarFileSystemTest.java | Class | |
ListenerList.java | Class | A class that holds a list of listeners of some type. |
LocalFileSystem.java | Class | Local filesystem. |
LocalFileSystemTest.java | Class | |
LocalFileSystemTestHid.java | Class | |
MemoryFileSystem.java | Class | Simple implementation of memory file system. |
MemoryFileSystemTest.java | Class | |
MemoryFSTestHid.java | Class | |
MfoOnSFSTestHid.java | Class | |
MIMEResolver.java | Class | This class is intended as superclass for individual resolvers.
All registered subclasses of MIMEResolver are looked up and asked one by one
to resolve MIME type of passed FileObject. |
MIMESupport.java | Class | This class is intended to enhance MIME resolving. |
MIMESupport48486Test.java | Class | Simulate deadlock from issue 48486. |
MIMESupport49418Test.java | Class | Trying to mimic IZ 49418. |
MIMESupport68318Test.java | Class | |
MIMESupport69049Test.java | Class | |
MIMESupportResolversTest.java | Class | |
MIMESupportTest.java | Class | |
MultiFileObject.java | Class | Implementation of the file object for multi file system. |
MultiFileObjectTestHid.java | Class | |
MultiFileSystem.java | Class | General base class for filesystems which proxy to others.
This filesystem has no form of storage in and of itself. |
MultiFileSystem1Test.java | Class | |
MultiFileSystem2Test.java | Class | |
MultiFileSystem3Test.java | Class | |
MultiFileSystemMaskTest.java | Class | Test that MultiFileSystem can mask files correctly. |
MultiFileSystemRefreshTest.java | Class | Test that MultiFileSystem does not refresh more than it needs to
when you call setDelegates. |
MultiThreadedTestCaseHid.java | Class | A multi-threaded JUnit test case. |
NbfsUtil.java | Class | |
NoAWTTest.java | Class | |
Ordering.java | Class | Implements folder ordering logic in
FileUtil . |
OrderingTest.java | Class | |
PathElements.java | Class | |
RefreshRequest.java | Class | Request for parsing of an filesystem. |
Repository.java | Class | Holder for system filesystem, used for most of NetBeans' runtime configuration.
There is only one useful thing to do with this class:
FileSystem sfs = Repository.getDefault().getDefaultFileSystem();
// now use somehow, e.g.
FileObject menus = sfs.findResource("Menu");
// ...
Formerly (NB 3.x) contained a list of mounted filesystems. |
RepositoryAdapter.java | Class | Dummy adapter for RepositoryListener . |
RepositoryEvent.java | Class | Event describing adding a filesystem to, or removing a filesystem from, the filesystem pool. |
RepositoryGetDefaultTest.java | Class | |
RepositoryListener.java | Interface | Listener to changes in the filesystem pool. |
RepositoryReorderedEvent.java | Class | Fired when a filesystem pool is reordered. |
RepositoryTest.java | Class | |
RepositoryTestHid.java | Class | |
StreamPool.java | Class | This class keeps info about streams (these streams are registered) that was
not closed yet. |
StreamPool50137Test.java | Class | Simulate deadlock from issue 50137. |
SystemFileSystemTest.java | Class | |
TestBaseHid.java | Class | |
TestUtilHid.java | Class | |
URLMapper.java | Class | Mapper from FileObject -> URL.
Should be registered in default lookup. |
URLMapper50852Test.java | Class | Simulates issue 50852. |
URLMapper50984Test.java | Class | Trying to mimic IZ 50984. |
URLMapperLookupTest.java | Class | URL mapper is often invoked from inside the lookup. |
URLMapperTest.java | Class | Test functionality of URLMapper. |
URLMapperTestHidden.java | Class | |
URLMapperTestInternalHidden.java | Class | |
XMLFileSystem.java | Class | XML-based filesystem.
Description of format of XML file (which can be parsed by XMLFileSystem)
==================================================================
Allowed Elements: filesystem,file,folder,attr
Mandatory attributes:
-for filesystem version=... |
XMLFileSystemTest.java | Class | |
XMLFileSystemTestHid.java | Class | |
XMLMapAttr.java | Class | Holds in Map attributes: Map(String attrName,XMLMapAttr.Attr attribute). |