Chapter TenDataObjects and DataLoaders

In Chapter 6 we covered the Filesystems API. That API duplicates some part of the capabilities of java.io.File.FileObjects represent files on disk and provide input and output streams from them. The Filesystems API extends the concept of “files” by not requiring the things it considers to be “files” to be files on disk—they may be entries in a JAR file, or files on an FTP server, or any other kind of hierarchical, data-bearing storage someone might choose to create. Figure 10.1 shows the role of FileObjects in NetBeans’ overall internal model of files and their contents.

Figure 10.1. The roles of FileObjects, DataObjects, and Nodes

We have extended the concept of “files” to mean anything that is hierarchical ...

Get Rich Client Programming: Plugging into the NetBeans Platform now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.