[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipse-incubator-e4-dev] [resources] Java7 / JSR203 and EFS

Hi all,
 
I investigated a little bit more about JSR203 (nio2 / filesystem access),
and here's some data points:
In terms of its relation to EFS, I think the more interesting bits are
EFS is better than JSR203 when it comes to progress reporting and cancellation --
all the JSR203 operations seem atomic (readAttributes(), copyTo(),
moveTo()) whereas
EFS allows IProgressMonitor for these operations.
 
Attached is a little test program I wrote (under EPL), if you are interested.
Of course, this needs the JSR203 ea from [1] to run :-)
The output of my program is this:

Same!
p2URI: file:///C:/PROGRA~1/
realpath: C:\Program Files
canonical: C:\Program Files
compareTo: 0
attrs: {owner=BUILTIN\Administrators, acl=[BUILTIN\Users:READ_ACL/EXECUTE/READ_NAMED_ATTRS/READ_ATTRIBUTES/SYNCHRONIZE/READ_DATA:ALLOW, BUILTIN\Users:FILE_INHERIT/DIRECTORY_INHERIT/INHERIT_ONLY:ALLOW, ...]}

[1] http://download.java.net/jdk7/jsr203/
[2] http://dlinsin.blogspot.com/2008/07/jsr-203-more-new-io.html
[3] http://tech.puredanger.com/java7/#jsr203
[4] http://today.java.net/pub/a/today/2008/07/03/jsr-203-new-file-apis.html
 
Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
 
 

Attachment: jsr203test.zip
Description: jsr203test.zip