public class FilteredTextEventListener extends FilteredEventListener implements ITextExtractionStrategy
FilteredEventListener
is that this class conveniently implements ITextExtractionStrategy
and can therefore used as a strategy on its own, apart from the inherited function of filtering event appropriately to its delegates.
delegates, filters
Constructor and Description |
---|
FilteredTextEventListener(ITextExtractionStrategy delegate, IEventFilter... filterSet)
Constructs a FilteredTextEventListener instance with a ITextExtractionStrategy delegate.
|
Modifier and Type | Method and Description |
---|---|
String |
getResultantText()
As an resultant text we use the concatenation of all the resultant text of all the delegates that implement ITextExtractionStrategy .
|
attachEventListener, eventOccurred, getSupportedEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
eventOccurred, getSupportedEvents
public FilteredTextEventListener(ITextExtractionStrategy delegate, IEventFilter... filterSet)
FilteredTextEventListener
instance with a ITextExtractionStrategy
delegate.
delegate
- a delegate that fill be called when all the corresponding filters for an event pass
filterSet
- filters attached to the delegate that will be tested before passing an event on to the delegate
public String getResultantText()
ITextExtractionStrategy
.
getResultantText
in interface ITextExtractionStrategy
Copyright © 1998–2017 iText Group NV. All rights reserved.