Package org.gradle.api.resources
Interface ResourceHandler
-
public interface ResourceHandlerProvides access to resource-specific utility methods, for example factory methods that create various resources.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReadableResourcebzip2(java.lang.Object path)Creates resource that points to a bzip2 compressed file at the given path.TextResourceFactorygetText()Returns a factory for creatingTextResources from various sources such as strings, files, and archive entries.ReadableResourcegzip(java.lang.Object path)Creates resource that points to a gzip compressed file at the given path.
-
-
-
Method Detail
-
gzip
ReadableResource gzip(java.lang.Object path)
Creates resource that points to a gzip compressed file at the given path. The path is evaluated as perProject.file(Object).- Parameters:
path- The path evaluated as perProject.file(Object).
-
bzip2
ReadableResource bzip2(java.lang.Object path)
Creates resource that points to a bzip2 compressed file at the given path. The path is evaluated as perProject.file(Object).- Parameters:
path- The path evaluated as perProject.file(Object).
-
getText
TextResourceFactory getText()
Returns a factory for creatingTextResources from various sources such as strings, files, and archive entries.- Returns:
- a factory for creating
TextResources - Since:
- 2.2
-
-