Class SignatureRemover
java.lang.Object
org.jacoco.core.internal.instr.SignatureRemover
Support class to filter entries from JARs related to signatures.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfilterEntry(String name, InputStream in, OutputStream out) Filters the content of the entry with the provided name if necessary.private voidfilterManifestEntry(Collection<Attributes> entry) private voidbooleanremoveEntry(String name) Checks whether a entry with the provided name should be ignored at all.voidsetActive(boolean active) Defines whether this remover should be active.
-
Field Details
-
SIGNATURE_FILES
-
MANIFEST_MF
- See Also:
-
DIGEST_SUFFIX
- See Also:
-
active
private boolean active
-
-
Constructor Details
-
SignatureRemover
public SignatureRemover()Creates a new remover which is active.
-
-
Method Details
-
setActive
public void setActive(boolean active) Defines whether this remover should be active. If it is not active it will not remove any entries.- Parameters:
active-trueif it should remove signature related entries.
-
removeEntry
Checks whether a entry with the provided name should be ignored at all.- Parameters:
name- path name of the entry in question- Returns:
- true is the entry should be ignored
-
filterEntry
Filters the content of the entry with the provided name if necessary.- Parameters:
name- path name of the entry in questionin- source for the element to filterout- output for the filtered contents- Returns:
trueif the content was filtered- Throws:
IOException- if the content can't be read or written
-
filterManifestEntry
-
filterManifestEntryAttributes
-