Class UnfilteredFileContent
java.lang.Object
com.cloudbees.jenkins.support.api.Content
com.cloudbees.jenkins.support.api.UnfilteredFileContent
Content that is stored as a file on disk and is not filtered. If you want the content to be filtered, use the
FileContent
class.- Author:
- Stephen Connolly, M Ramón León
-
Field Summary
-
Constructor Summary
ConstructorDescriptionUnfilteredFileContent
(String name, File file) UnfilteredFileContent
(String name, File file, long maxSize) UnfilteredFileContent
(String name, String[] filterableParameters, File file) UnfilteredFileContent
(String name, String[] filterableParameters, File file, long maxSize) -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStream
Instantiates theInputStream
for thefile
.long
getTime()
boolean
Indicates if this Content should be filtered when anonymization is enabled.void
writeTo
(OutputStream os) Methods inherited from class com.cloudbees.jenkins.support.api.Content
getFilterableParameters, getName
-
Field Details
-
file
-
-
Constructor Details
-
UnfilteredFileContent
-
UnfilteredFileContent
-
UnfilteredFileContent
-
UnfilteredFileContent
-
-
Method Details
-
writeTo
- Specified by:
writeTo
in classContent
- Throws:
IOException
-
getTime
- Overrides:
getTime
in classContent
- Throws:
IOException
-
getInputStream
Instantiates theInputStream
for thefile
.- Returns:
- the
InputStream
for thefile
. - Throws:
IOException
- if something goes wrong while creating the stream for reading #file.
-
shouldBeFiltered
public boolean shouldBeFiltered()Description copied from class:Content
Indicates if this Content should be filtered when anonymization is enabled. Whentrue
, the contents written viaContent.writeTo(OutputStream)
may be filtered by aContentFilter
. Whenfalse
, the contents are written without any filtering applied.- Overrides:
shouldBeFiltered
in classContent
-