|
org.openide.filesystems 6.4.22 | |||||||||
PREV NEXT | FRAMES NO FRAMES |
See:
Description
File Systems API | |
---|---|
org.openide.filesystems | The IDE internally uses the concept of a virtual filesystem. |
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.
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.
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.
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.
FileUtil.preventFileChooserSymlinkTraversal(...)
Added a new method FileUtil.preventFileChooserSymlinkTraversal(...)
to help work around problems with symbolic links and JFileChooser
.
|
|
|
Read more about the implementation in the answers to architecture questions.
|
org.openide.filesystems 6.4.22 | |||||||||
PREV NEXT | FRAMES NO FRAMES |