jVolumes - Core Module

An abstraction to handle different types of file storage

Лицензия

Лицензия

Группа

Группа

com.github.microtweak
Идентификатор

Идентификатор

jvolumes-core
Последняя версия

Последняя версия

0.0.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

jVolumes - Core Module
An abstraction to handle different types of file storage

Скачать jvolumes-core

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.microtweak/jvolumes-core/ -->
<dependency>
    <groupId>com.github.microtweak</groupId>
    <artifactId>jvolumes-core</artifactId>
    <version>0.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.microtweak/jvolumes-core/
implementation 'com.github.microtweak:jvolumes-core:0.0.3'
// https://jarcasting.com/artifacts/com.github.microtweak/jvolumes-core/
implementation ("com.github.microtweak:jvolumes-core:0.0.3")
'com.github.microtweak:jvolumes-core:jar:0.0.3'
<dependency org="com.github.microtweak" name="jvolumes-core" rev="0.0.3">
  <artifact name="jvolumes-core" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.microtweak', module='jvolumes-core', version='0.0.3')
)
libraryDependencies += "com.github.microtweak" % "jvolumes-core" % "0.0.3"
[com.github.microtweak/jvolumes-core "0.0.3"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.apache.commons : commons-lang3 jar 3.9
commons-io : commons-io jar 2.6

provided (1)

Идентификатор библиотеки Тип Версия
org.projectlombok : lombok jar 1.18.8

test (2)

Идентификатор библиотеки Тип Версия
org.junit.jupiter : junit-jupiter-engine jar 5.4.2
org.junit.jupiter : junit-jupiter-params jar 5.4.2

Модули Проекта

Данный проект не имеет модулей.

jVolumes


An abstraction to handle different types of file storage

Problem

Storing files in the cloud (AWS S3, Google Cloud Storage, etc.) requires the use of the provider's SDK. Although these APIs are not complex, it is still a little tiring to use them.

The Spring Framework presents a very cool abstraction called Resource, which, in addition to the Spring Cloud, adds support for Amazon S3, Google Cloud Storage and Azure Blob Storage.

Unfortunately, Spring's Resource class does not have some operations like copying, moving and deleting files from these locations. And finally, if your project is not based on Spring, you can not the abstraction of the Spring Framework.

Solution

A small API inspired by the Resource of Spring Framework, but independent of Spring. This means that you can use it in any environment (Java EE/Jakarta EE, Spring).

FileResource.of("file://C:/images/book.jpg")
    .copyTo("s3://[your-s3-bucket]/book.jpg");
com.github.microtweak

Microtweak

Small libraries for micro tweaking (or small features) in frameworks you already know

Версии библиотеки

Версия
0.0.3
0.0.2
0.0.1