public abstract class Content extends Object
Modifier | Constructor and Description |
---|---|
protected |
Content(String name)
Create a Content with this name.
|
protected |
Content(String name,
String... filterableParameters)
Set a name to this content with some filterable parts.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getFilterableParameters() |
String |
getName() |
long |
getTime() |
boolean |
shouldBeFiltered()
Indicates if this Content should be filtered when anonymization is enabled.
|
abstract void |
writeTo(OutputStream os) |
protected Content(String name)
Content(String, String...)
constructor.name
- name of the content.protected Content(String name, String... filterableParameters)
ContentFilter
.
This new constructor avoid having incorrectly filtered elements in the support bundle. For example, when having
a job called nodes. The nodes element in the file name of a file in the bundle shouldn't be filtered.
The name is rendered using the MessageFormat.format(String, Object...)
method after the filter.name
- name of the contentfilterableParameters
- strings to be filtered in the namepublic String getName()
@CheckForNull public String[] getFilterableParameters()
public abstract void writeTo(OutputStream os) throws IOException
IOException
public long getTime() throws IOException
IOException
public boolean shouldBeFiltered()
true
, the contents written via
writeTo(OutputStream)
may be filtered by a ContentFilter
.
When false
, the contents are written without any filtering applied.Copyright © 2016–2022. All rights reserved.