You want this module if you intend to write your own application that mounts a TNFS server as a Java NIO file system. This means you can treat TNFS resources as if they as just another Path.
- Java 17 or higher.
The library is on Maven Central, so just add to your POM, or your build systems equivalent. See the Home Page for the current version.
<dependency>
<groupId>uk.co.bithatch</groupId>
<artifactId>tnfs-java-nio</artifactId>
<version>x.y.z<version>
</dependency>- Create a
Pathusing the TNFS URI format. - Use
Filesand friends to manipulate the mount as you would a local file system.
var path = Paths.get("tnfs://myserver/mymount/a-text-file.txt");
try(var in = Files.newInputStream(path)) {
in.transferTo(System.out);
}