Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.openide.filesystems 6.4.22
PREV NEXT | FRAMES NO FRAMES

# NetBeans File Systems API

See:
Description

File Systems API
org.openide.filesystems | The IDE internally uses the concept of a virtual filesystem.

### What is New (see all changes)?

- Oct 25 '05 The way how `IllegalArgumentException` is thrown from `FileUtil.toFileObject` was changed

  Because of performance reason piece of code checking whether file was properly normalized is called conditionally just in case that assertions are enabled. Then `IllegalArgumentException` can't be thrown if assertions are disabled.

- Jul 21 '05 Removed most static MIME type mappings

  Previously, a number of file extensions were given hardcoded MIME types in the Filesystems API library (unless overridden by `MIMEResolver`s or `FileSystem` implementations). Most of these static mappings have been removed. The affected mappings were:

  Extension | MIME type
  `au` | `audio/basic`
  `class` | `application/octet-stream`
  `css` | `text/css`
  `dtd` | `text/x-dtd`
  `exe` | `application/octet-stream`
  `htm` | `text/html`
  `html` | `text/html`
  `jar` | `application/x-jar`
  `java` | `text/x-java`
  `jsp` | `text/plain`
  `mov` | `video/quicktime`
  `pl` | `text/plain`
  `properties` | `text/plain`
  `ps` | `application/postscript`
  `ra` | `audio/x-pn-realaudio`
  `ram` | `audio/x-pn-realaudio`
  `rm` | `audio/x-pn-realaudio`
  `rpm` | `audio/x-pn-realaudio`
  `sh` | `application/x-shar`
  `snd` | `audio/basic`
  `tar` | `application/x-tar`
  `text` | `text/plain`
  `txt` | `text/plain`
  `uu` | `application/octet-stream`
  `wav` | `audio/x-wav`
  `xsd` | `text/xml`
  `xsl` | `text/xml`
  `zip` | `application/zip`

  The mapping from `*.xml` to `text/xml` is retained as this may be central to processing of XML configuration files on the system file system.

- Jan 7 '05 `FileObject.getFileObject` made not final.

  Method `public final FileObject getFileObject (String relativePath)` in class `FileObject` isn't final anymore to let more freedom for implemetations.

- Aug 4 '04 Added new method `FileUtil.createMemoryFileSystem ()`

  There is a new factory method `FileUtil.createMemoryFileSystem ()` to create an empty, writeable instance of a `FileSystem` with content completely stored in memory. This filesystem is the one that is by default returned from `Repository.getDefaultFileSystem()` so since now the standalone applications may expect the default file system to be writable.

- Jul 30 '04 Added `FileUtil.preventFileChooserSymlinkTraversal(...)`

  Added a new method `FileUtil.preventFileChooserSymlinkTraversal(...)` to help work around problems with symbolic links and `JFileChooser`.

### Use Cases

### Exported Interfaces

This table lists all of the module exported APIs with defined stability classifications. It is generated based on answers to questions about the architecture of the module. Read them all...

##### Group of java interfaces

Interface Name | In/Out | Stability | Specified in What Document?
FilesystemsAPI | Exported | Official | .../openide/filesystems/doc-files/api.html

##### Group of property interfaces

Interface Name | In/Out | Stability | Specified in What Document?
org.openide.filesystems.DefaultAttributes.ATTR_NAME_EXT_XML | Exported | Private | Name of attribute file can be changed , if .nbattrs can't be used.
org.openide.filesystems.LocalFileSystem.REFRESH_TIME | Exported | Private | Periodic refresh can be set.
org.openide.filesystems.annotateUnclosedStreams | Exported | Private | If `true`, better diagnostic information will be available as to when file input or output streams were opened that prevent a file from being deleted because they were not closed. This information comes at a performance cost, however.

##### Group of dtd interfaces

Interface Name | In/Out | Stability | Specified in What Document?
attributes-1_0.dtd | Exported | Stable | .../www.netbeans.org/dtds/attributes-1_0.dtd `-//NetBeans//DTD DefaultAttributes 1.0//EN`
filesystem-1_0.dtd | Exported | Stable | .../www.netbeans.org/dtds/filesystem-1_0.dtd `-//NetBeans//DTD Filesystem 1.0//EN`

### Implementation Details

Read more about the implementation in the answers to architecture questions.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.openide.filesystems 6.4.22
PREV NEXT | FRAMES NO FRAMES

Built on December 7 2006. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.