api / org.gradle.api.resources / ReadableResource

ReadableResource

interface ReadableResource : Resource

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

Functions

read

abstract fun read(): InputStream

Returns an unbuffered InputStream that provides means to read the resource. It is the caller's responsibility to close this stream.

Inherited 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