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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUnfilteredFileContent(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 InputStreamInstantiates theInputStreamfor thefile.longgetTime()booleanIndicates if this Content should be filtered when anonymization is enabled.voidwriteTo(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:
writeToin classContent- Throws:
IOException
-
getTime
- Overrides:
getTimein classContent- Throws:
IOException
-
getInputStream
Instantiates theInputStreamfor thefile.- Returns:
- the
InputStreamfor thefile. - Throws:
IOException- if something goes wrong while creating the stream for reading #file.
-
shouldBeFiltered
public boolean shouldBeFiltered()Description copied from class:ContentIndicates 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:
shouldBeFilteredin classContent
-