io.vrap.rmf.base.client.utils.FileUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rmf-java-base Show documentation
Show all versions of rmf-java-base Show documentation
The e-commerce SDK from commercetools Composable Commerce for Java
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;
}
}