|
org.openide.filesystems 7.59 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
See:
Description
| File System API | |
|---|---|
| org.openide.filesystems | NetBeans internally uses the concept of a virtual filesystem. |
| org.openide.filesystems.annotations | Support for writing annotation processors which generate XML layer fragments. |
NetBeans internally uses the concept of a virtual filesystem. This module provide APIs for accessing such virtual files as well as some support classes to make writing of custom vitual filesystems easier.
Those who wish to influence content of configuration file system have an easier way now.
There are new annotations to register mime type. One can either use simpler ones based on extension or XML namespace. In case these registration are not powerful enough one can use the original and flexible XML file based registration which is however processed during compile time to avoid needless XML parsing on each start.
FileObject.toURI
Added FileObject.toURI for convenience.
Also deprecated FileObject.getURL in favor of toURL
which is the same but does not throw FileStateInvalidException,
and clarified that URLMapper.findURL(fo, INTERNAL)
will never return null.
FileObject.DEFAULT_LINE_SEPARATOR_ATTR defines file object attribute name to get default line separator.
File object can provide default line separator if it differs from
System.getProperty("line.separator"). Call
fo.getAttribute(FileObject.DEFAULT_LINE_SEPARATOR_ATTR) returns string with
default line separator. Default line separator will be used by the text
editor if saving new content to an initially empty file. Any other code
which creates file content programmatically must manually read this
property if it cares.
FileObject.revert
Added revert and canRevert to FileObject.
Many of the usecases are described at the overall documentation, in a way how to register a mime type. Some of the additional usecases are covered here.
See documentation about dynamically changing the system filesystem.
|
|
|
|
The sources for the module are in the NetBeans Mercurial repositories.
XXX no answer for deploy-dependencies
Read more about the implementation in the answers to architecture questions.
|
org.openide.filesystems 7.59 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||