Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.nio.file implementation for AWS

Is there any official java.nio.file implementation for AWS?

I found one for GoogleCloudStorage here, and need similar for AWS and Azure.

like image 894
Sergey Bespalov Avatar asked Sep 17 '26 20:09

Sergey Bespalov


1 Answers

An implementation of the FileSystemProvider SPI that uses asynchronous read-ahead buffering is available from github and from Maven Central. This library supports reads and writes.

You can include it in a Maven project using:

<dependency>
    <groupId>software.amazon.nio.s3</groupId>
    <artifactId>aws-java-nio-spi-for-s3</artifactId>
    <version>1.2.1</version>
</dependency>

Or you can just place the JAR file on your classpath and the JVM will route all URIs with a scheme of s3 to this provider.

like image 100
Mark Avatar answered Sep 19 '26 09:09

Mark