This entry discusses file permission and file attributes support in NIO.2 or JSR-203 which will be part of JDK 7. In this entry you can lean how to read the file attributes like creation date, size, and permissions like execute, read and write flags.
In this entry we will discuss basics of using NIO.2. The FileSystems, Path and FileStore objects are discussed with some details.
I will write a series of blog introducing what are new features for handling I/O in Java 7. In the first part we are just going to check what do we have in Java 7 for dealing with I/O requirements which were not included in the previous versions of Java platform standard edition.
I decided to write down the answer for some questions which my book's readers email me or ask me via twitter in my weblog so everyone can benefit from the answers. Here is the answer to the first question which involves custom security realms.
GlassFish supports 5 types of security realms out of the box which are sd follow:
File Realm: Usefull for development and testing purposes. GlassFish...