io-functions

A collection of functional interfaces for I/O operations

Лицензия

Лицензия

Группа

Группа

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

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

io-functions
Последняя версия

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

2.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

io-functions
A collection of functional interfaces for I/O operations
Ссылка на сайт

Ссылка на сайт

https://robtimus.github.io/io-functions/
Система контроля версий

Система контроля версий

https://github.com/robtimus/io-functions

Скачать io-functions

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

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

Зависимости

test (1)

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

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

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

io-functions

The io-functions library provides functional interfaces for I/O operations. These are basically copies of the functional interfaces in java.util.functions except their methods can throw IOExceptions.

Each of these interfaces also contains static methods unchecked and checked to convert them into their matching JSE equivalents. For example, to delete all files in a directory that match a filter, you can use IOConsumer.unchecked:

try (DirectoryStream<Path> stream = Files.newDirectoryStream(dir, filter)) {
    stream.forEach(unchecked(Files::delete));
} catch (UncheckedIOException e) {
    throw e.getCause();
}

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

Версия
2.0
1.1
1.0