{"id":20741130,"url":"https://github.com/robtimus/io-functions","last_synced_at":"2025-12-25T01:31:27.864Z","repository":{"id":57722445,"uuid":"91249069","full_name":"robtimus/io-functions","owner":"robtimus","description":"A collection of functional interfaces for I/O operations","archived":false,"fork":false,"pushed_at":"2024-01-20T12:49:37.000Z","size":570,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-18T01:45:21.323Z","etag":null,"topics":["functions","java"],"latest_commit_sha":null,"homepage":"https://robtimus.github.io/io-functions/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robtimus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-14T14:31:51.000Z","updated_at":"2022-05-27T11:17:44.000Z","dependencies_parsed_at":"2024-01-20T13:47:46.116Z","dependency_job_id":null,"html_url":"https://github.com/robtimus/io-functions","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robtimus%2Fio-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robtimus%2Fio-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robtimus%2Fio-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robtimus%2Fio-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robtimus","download_url":"https://codeload.github.com/robtimus/io-functions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243030805,"owners_count":20224666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["functions","java"],"created_at":"2024-11-17T06:34:02.441Z","updated_at":"2025-12-25T01:31:27.860Z","avatar_url":"https://github.com/robtimus.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# io-functions\n[![Maven Central](https://img.shields.io/maven-central/v/com.github.robtimus/io-functions)](https://search.maven.org/artifact/com.github.robtimus/io-functions)\n[![Build Status](https://github.com/robtimus/io-functions/actions/workflows/build.yml/badge.svg)](https://github.com/robtimus/io-functions/actions/workflows/build.yml)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=com.github.robtimus%3Aio-functions\u0026metric=alert_status)](https://sonarcloud.io/summary/overall?id=com.github.robtimus%3Aio-functions)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=com.github.robtimus%3Aio-functions\u0026metric=coverage)](https://sonarcloud.io/summary/overall?id=com.github.robtimus%3Aio-functions)\n[![Known Vulnerabilities](https://snyk.io/test/github/robtimus/io-functions/badge.svg)](https://snyk.io/test/github/robtimus/io-functions)\n\nThe `io-functions` library provides functional interfaces for I/O operations. These are basically copies of the functional interfaces in [java.util.functions](https://docs.oracle.com/javase/8/docs/api/java/util/function/package-summary.html) except their methods can throw [IOExceptions](https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html).\n\nEach 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](https://robtimus.github.io/io-functions/apidocs/com/github/robtimus/io/function/IOConsumer.html#unchecked-com.github.robtimus.io.function.IOConsumer-):\n\n```java\ntry (DirectoryStream\u003cPath\u003e stream = Files.newDirectoryStream(dir, filter)) {\n    stream.forEach(unchecked(Files::delete));\n} catch (UncheckedIOException e) {\n    throw e.getCause();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobtimus%2Fio-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobtimus%2Fio-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobtimus%2Fio-functions/lists"}