Class TruncatedContent
- java.lang.Object
-
- com.cloudbees.jenkins.support.api.Content
-
- com.cloudbees.jenkins.support.api.TruncatedContent
-
public abstract class TruncatedContent extends Content
Content added to the support bundle that should be truncated.- Since:
- 2.26
- Author:
- schristou88
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TruncatedContent.TruncatedOutputStream
-
Constructor Summary
Constructors Constructor Description TruncatedContent(String name)
TruncatedContent(String name, int maxSize)
TruncatedContent(String name, String... filterableParameters)
TruncatedContent(String name, String[] filterableParameters, int maxSize)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
printTo(PrintWriter out)
{$Content} that will be printed to a specific {$PrintWriter}.void
writeTo(OutputStream os)
-
Methods inherited from class com.cloudbees.jenkins.support.api.Content
getFilterableParameters, getName, getTime, shouldBeFiltered
-
-
-
-
Method Detail
-
writeTo
public void writeTo(OutputStream os) throws IOException
- Specified by:
writeTo
in classContent
- Throws:
IOException
-
printTo
protected abstract void printTo(PrintWriter out) throws IOException
{$Content} that will be printed to a specific {$PrintWriter}.- Parameters:
out
- PrintWriter to print to- Throws:
IOException
- if and error occurs while performing the operation.
-
-