Rajendra's Blog

Wednesday Mar 12, 2008

JSR-203 New Java File System Interface

For the past few months, I have been testing the functionality of new Java file system APIs. These APIs are going to be part of specification JSR-203 (a.k.a. NIO.2). Alan Bateman is the specification lead for this JSR. Testing these new Java API's has been a very fascinating experience for me, as I had to explore the myriad of inputs and scenarios in the file system. NIO.2 is one of the biggest features in Java SE 7. This JSR allows user to develop file systems using the provider interface. Here is the list of some of the features that comes with this JSR.

>> Access to file system attributes(owner,etc.)
>> Support for file system change notifications
>> create and modify Access Control Lists (ACL's)
>> Gracefully handle file system failures
>> Service provider interface for pluggable file systems.
>> Utility methods for file system activities(copy, move, walkFileTree etc.)
>> dealing with links (creating, deleting and following links)
>> incremental listing of files in the directory.
>> and many more ...

I would like to give examples which interest you in the coming entries of this blog.

Comments:

Is there a implementation available? Is it a already a part oft the jdk7 betas?

Posted by Christian on March 13, 2008 at 03:50 AM IST #

I've been hearing about this JSR for a long time. Is there a reference impl? It doesn't seem to have followed the open example of 295 and 296 to mention a few recent ones.

Posted by Casper on March 13, 2008 at 05:13 AM IST #

I really would like to test the new sockets. Is there a way to get an implementation? The JDK seems to miss the classes.

Posted by Luca Venturi on March 13, 2008 at 01:59 PM IST #

Yes, there's an RI. We're just waiting for approval to release the code. Hopefully really soon.

Posted by Alan on March 13, 2008 at 02:03 PM IST #

Can you give an ETA? Does the new implementation has support for socket callback as promised? Any numbers on scalability?

Posted by Deniz on March 17, 2008 at 08:40 PM IST #

If by "socket callbacks" you are asking if includes asynchronous I/O then the answer is yes. When initiating an I/O operation can you specify a callback handler that is invoked when the I/O completes. The scalability on the platforms we release is very good.

Posted by Alan on March 17, 2008 at 10:35 PM IST #

Post a Comment:
  • HTML Syntax: NOT allowed

Calendar

Feeds

Search

Links

Navigation

Referrers