public class FileContent extends PrefilteredContent
ContentFilter
defined in the
instance.Modifier and Type | Field and Description |
---|---|
protected com.cloudbees.jenkins.support.api.BaseFileContent |
baseFileContent |
protected File |
file |
Constructor and Description |
---|
FileContent(String name,
File file) |
FileContent(String name,
File file,
long maxSize) |
FileContent(String name,
String[] filterableParameters,
File file) |
FileContent(String name,
String[] filterableParameters,
File file,
long maxSize) |
Modifier and Type | Method and Description |
---|---|
protected InputStream |
getInputStream()
Instantiates the
InputStream for the file . |
protected String |
getSimpleValueOrRedactedPassword(String value) |
long |
getTime() |
void |
writeTo(OutputStream os) |
void |
writeTo(OutputStream os,
ContentFilter filter)
Write the component in the bundle filtering the content
|
shouldBeFiltered
getFilterableParameters, getName
protected com.cloudbees.jenkins.support.api.BaseFileContent baseFileContent
protected final File file
public void writeTo(OutputStream os) throws IOException
writeTo
in class Content
IOException
public void writeTo(OutputStream os, ContentFilter filter) throws IOException
PrefilteredContent
writeTo
in class PrefilteredContent
os
- OutputStream where write the contentfilter
- ContentFilter to applyIOException
- If an input or output exception occursprotected InputStream getInputStream() throws IOException
InputStream
for the file
.InputStream
for the file
.IOException
- if something goes wrong while creating the stream for reading #file.Copyright © 2016–2022. All rights reserved.