name.remal.gradle_plugins.toolkit.classpath.ResourceInputStreamOpener Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of classpath Show documentation
Show all versions of classpath Show documentation
Remal Gradle plugins: toolkit: classpath
package name.remal.gradle_plugins.toolkit.classpath;
import com.google.errorprone.annotations.MustBeClosed;
import java.io.File;
import java.io.InputStream;
@FunctionalInterface
public interface ResourceInputStreamOpener {
/**
* Opens {@link InputStream} for the resource.
* {@link InputStream} can be opened only once.
* Can't be used outside of {@link ClassProcessor#process(File, String, ResourceInputStreamOpener)} and
* {@link ResourceProcessor#process(File, String, ResourceInputStreamOpener)}.
*/
@MustBeClosed
InputStream openStream();
}