api / org.gradle.api.file / FileTreeElement / open

open

abstract fun open(): InputStream

Opens this file as an input stream. Generally, calling this method is more performant than calling new FileInputStream(getFile()).

Return
The input stream. Never returns null. The caller is responsible for closing this stream.