api / org.gradle.api.resources / Resource

Resource

interface Resource

A generic resource of some kind. Only describes the resource. There are more specific interface that extend this one and specify ways of accessing the resource's content.

Functions

getBaseName

abstract fun getBaseName(): String

Short name that concisely describes this resource

getDisplayName

abstract fun getDisplayName(): String

Human readable name of this resource

getURI

abstract fun getURI(): URI

Uniform resource identifier that uniquely describes this resource

Inheritors

ReadableResource

interface ReadableResource : Resource

A resource that can be read. The simplest example is a file.