All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vrap.rmf.base.client.utils.FileUtils Maven / Gradle / Ivy

There is a newer version: 17.17.0
Show newest version

package io.vrap.rmf.base.client.utils;

import java.io.IOException;

public class FileUtils {
    public static  T executing(final SupplierThrowingIOException supplier) {
        try {
            return supplier.get();
        }
        catch (final IOException e) {
            throw new FileException(e);
        }
    }

    @FunctionalInterface
    public interface SupplierThrowingIOException {
        T get() throws IOException;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy