For AI agents: the documentation index is at
https://docs.gradle.org/llms.txt
. Request any page with the header
Accept: text/markdown
to get Markdown. User manual pages are also available as Markdown by replacing
.html
with
.md
in the URL.
gradle
Toggle table of contents
9.9.1
API
Target filter
API
Switch theme
Search in API
Skip to content
gradle
gradle
/
org.gradle.caching
/
BuildCacheEntryWriter
Build
Cache
Entry
Writer
API
interface
BuildCacheEntryWriter
(
source
)
Writer to serialize a build cache entry.
Since
3.3
Members
Functions
get
Input
Stream
Link copied to clipboard
API
@
Incubating
abstract
fun
getInputStream
(
)
:
InputStream
Gets an input stream providing the build cache entry content.
get
Size
Link copied to clipboard
API
abstract
fun
getSize
(
)
:
Long
Returns the size of the build cache entry to be written.
write
To
Link copied to clipboard
API
abstract
fun
writeTo
(
output
:
OutputStream
)
Writes a build cache entry to the given stream.