Announce: JSR 202 resources, call for contributions/help

Francis Galiegue fgaliegue at gmail.com
Tue Dec 16 22:36:44 UTC 2014


Hello,

I am, myself, a convinced user of java.nio.file; in new code, when I
can "afford" Java 7+, File is dead, it is as simple as that.

However, nowadays JSR 202 is more than 3 years old, yet it is
underused; for instance, I am a heavy Stack Overflow user, and even
today, most I/O questions relating to file I/O still use java.io.File.
Even when users asking these questions have the possibility to use
java.nio.file.

Given the huge leap forwards that this new API provides, I cannot even
begin to explain this lack of awareness; but that bugs me. Therefore I
decided to try and promote JSR 202 in my own way, with two goals in
mind:

* teach end users about JSR 202;
* ease the entry into the JSR 202 API for developers.

For the first part, I created a dedicated web site (WARNING: ad-heavy;
if you have an ad blocker, use it):

https://java7fs.wikia.com

For the second part, I created a base project which I am currently
actively developping to ease the creation of new filesystems:

https://github.com/fge/java7-fs-base

In fact, I am that much into developing it at the moment that it is
not very accurately documented; still, it troubles me that for
instance the JDK defines AbstractPath and others but they are all
package private and therefore inaccessible. But from this API I
already developed two spawns:

* https://github.com/fge/java7-fs-box: a FileSystem over box.com
storage services;
* https://github.com/fge/java7-fs-dropbox: a FileSystem over dropbox
storage services.

And I also have this: https://github.com/java7-fs-more; its goal is to
provide path resolution methods, recursive copy/deletion methods etc,
making it even easier to use the new API.

Yes, all of this is in a somewhat crude state; this is early times,
nevertheless I'd appreciate feedback. I intend to keep eating my own
dog's food, in that I will develop more filesystems using
java7-fs-base, happily receive even negative comments about what I
have published etc.

Regards,
-- 
Francis Galiegue, fgaliegue at gmail.com, https://github.com/fge
JSON Schema in Java: http://json-schema-validator.herokuapp.com
Parsers in pure Java: https://github.com/parboiled1/grappa (redde
Caesaris: https://github.com/sirthias)


More information about the nio-dev mailing list