Class TemporaryFileContent
java.lang.Object
com.cloudbees.jenkins.support.api.Content
com.cloudbees.jenkins.support.filter.PrefilteredContent
com.cloudbees.jenkins.support.api.FileContent
com.cloudbees.jenkins.support.api.TemporaryFileContent
Temporary file content, auto-deleted after
writeTo(OutputStream)
.-
Field Summary
Fields inherited from class com.cloudbees.jenkins.support.api.FileContent
baseFileContent, file
-
Constructor Summary
ConstructorDescriptionTemporaryFileContent
(String name, File file) TemporaryFileContent
(String name, String[] filterableParameters, File file) -
Method Summary
Modifier and TypeMethodDescriptionvoid
writeTo
(OutputStream os) void
writeTo
(OutputStream os, ContentFilter filter) Write the component in the bundle filtering the contentMethods inherited from class com.cloudbees.jenkins.support.api.FileContent
getInputStream, getSimpleValueOrRedactedPassword, getTime
Methods inherited from class com.cloudbees.jenkins.support.filter.PrefilteredContent
shouldBeFiltered
Methods inherited from class com.cloudbees.jenkins.support.api.Content
getFilterableParameters, getName
-
Constructor Details
-
TemporaryFileContent
-
TemporaryFileContent
-
-
Method Details
-
writeTo
- Overrides:
writeTo
in classFileContent
- Throws:
IOException
-
writeTo
Description copied from class:PrefilteredContent
Write the component in the bundle filtering the content- Overrides:
writeTo
in classFileContent
- Parameters:
os
- OutputStream where write the contentfilter
- ContentFilter to apply- Throws:
IOException
- If an input or output exception occurs
-