public class CompositeCleanupStrategy extends Object implements ICleanupStrategy
ICleanupStrategy.
It allows users to have multiple ICleanupStrategy implementations and bundle them as one.| Constructor and Description |
|---|
CompositeCleanupStrategy()
Creates a
composite pattern for cleanup strategies. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ICleanupStrategy strategy)
Adds a
cleanup strategy to this composite pattern. |
void |
eventOccurred(com.itextpdf.kernel.pdf.canvas.parser.data.IEventData data,
com.itextpdf.kernel.pdf.canvas.parser.EventType type) |
com.itextpdf.kernel.colors.Color |
getRedactionColor(com.itextpdf.kernel.pdf.canvas.parser.listener.IPdfTextLocation location)
Get the color in which redaction is to take place
|
Collection<com.itextpdf.kernel.pdf.canvas.parser.listener.IPdfTextLocation> |
getResultantLocations() |
Set<com.itextpdf.kernel.pdf.canvas.parser.EventType> |
getSupportedEvents() |
ICleanupStrategy |
reset()
Returns a
cleanup strategy which represents
a reset composite cleanup strategy. |
public CompositeCleanupStrategy()
composite pattern for cleanup strategies.public void add(ICleanupStrategy strategy)
cleanup strategy to this composite pattern.strategy - a cleanup strategy to be added to this
composite pattern.public Collection<com.itextpdf.kernel.pdf.canvas.parser.listener.IPdfTextLocation> getResultantLocations()
getResultantLocations in interface com.itextpdf.kernel.pdf.canvas.parser.listener.ILocationExtractionStrategypublic com.itextpdf.kernel.colors.Color getRedactionColor(com.itextpdf.kernel.pdf.canvas.parser.listener.IPdfTextLocation location)
getRedactionColor in interface ICleanupStrategylocation - where to get the redaction color fromColorpublic void eventOccurred(com.itextpdf.kernel.pdf.canvas.parser.data.IEventData data,
com.itextpdf.kernel.pdf.canvas.parser.EventType type)
eventOccurred in interface com.itextpdf.kernel.pdf.canvas.parser.listener.IEventListenerpublic Set<com.itextpdf.kernel.pdf.canvas.parser.EventType> getSupportedEvents()
getSupportedEvents in interface com.itextpdf.kernel.pdf.canvas.parser.listener.IEventListenerpublic ICleanupStrategy reset()
cleanup strategy which represents
a reset composite cleanup strategy.
Note that all the inner strategies will be reset as well.
reset in interface ICleanupStrategycomposite strategyCopyright © 1998–2022 iText Group NV. All rights reserved.