By the time you read this documentation, this is the state of this page; the API is actively being developed, so if you have questions, the best way is to query the author.
java7-fs-base is a project aiming at simplifying the creation of entirely new filesystems for use with the java.nio.file API.
You may of course choose to implement it all yourself, but then look at what you have to implement:
And wait, there's more:
- file attributes;
- etc etc.
Fortunately, the vast majority of this is already implemented for you!
Note that this API is still a work in progress. It may change, it will change, but (hopefully) not without notice! This page will always be the reference page, so if you see bugs in it, please contact me (the preferred way to do this is to [open an issue on the Github project page, see link above).
java7-fs-base, install it in your local maven repository Edit
Since the state of the API is currently evolving quite rapidly, you have to do that first.
$ git clone https://github.com/fge/java7-fs-base.git $ cd java7-fs-base $ ./gradlew test install
Note: if you are using Windows, use
gradlew.bat; or better yet, install cygwin.
Second: create your project; add the dependency Edit
The dependency is as follows:
- group ID:
- artifact ID:
- version: see the
build.gradlefile of java7-fs-base for reference; at this moment it is
Note: if you don't use a build system (you should, really) you can just build java7-fs-base (using
./gradlew test jar) and add the jar (in
build/libs) as a dependency; this project does not depend on anything else than the JDK.
Now you are ready to start.
While it is not required that you implement all steps below in the exact order, it is nevertheless recommended that you follow them.
You need to create: