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
-
public class TemporaryFileContent extends FileContent
Temporary file content, auto-deleted afterwriteTo(OutputStream)
.
-
-
Field Summary
-
Fields inherited from class com.cloudbees.jenkins.support.api.FileContent
baseFileContent, file
-
-
Constructor Summary
Constructors Constructor Description TemporaryFileContent(String name, File file)
TemporaryFileContent(String name, String[] filterableParameters, File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeTo(OutputStream os)
void
writeTo(OutputStream os, ContentFilter filter)
Write the component in the bundle filtering the content-
Methods 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
-
-
-
-
Method Detail
-
writeTo
public void writeTo(OutputStream os) throws IOException
- Overrides:
writeTo
in classFileContent
- Throws:
IOException
-
writeTo
public void writeTo(OutputStream os, ContentFilter filter) throws IOException
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
-
-