This repository has been archived on 2024-05-30. You can view files and clone it, but cannot push or open issues or pull requests.
INF/src/main/java/ru/redguy/Task.java
2022-11-10 21:22:41 +03:00

16 lines
483 B
Java
Executable File

package ru.redguy;
import org.apache.commons.io.IOUtils;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.ExecutionException;
public abstract class Task {
public abstract void run() throws IOException, ExecutionException, InterruptedException;
public String getFile(String name) throws IOException {
return IOUtils.resourceToString(name, StandardCharsets.UTF_8, INF.class.getClassLoader());
}
}