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 |
getResultantLocations() |
Set |
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 CollectiongetResultantLocations()
getResultantLocations in interface com.itextpdf.kernel.pdf.canvas.parser.listener.ILocationExtractionStrategy
public com.itextpdf.kernel.colors.Color getRedactionColor(com.itextpdf.kernel.pdf.canvas.parser.listener.IPdfTextLocation location)
getRedactionColor in interface ICleanupStrategy
location - where to get the redaction color from
Color
public 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.IEventListener
public SetgetSupportedEvents()
getSupportedEvents in interface com.itextpdf.kernel.pdf.canvas.parser.listener.IEventListener
public 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 ICleanupStrategy
composite strategy
Copyright © 1998–2022 iText Group NV. All rights reserved.