iText 8.0.2 API
|
An event listener which filters events on the fly before passing them on to the delegate. More...
Public Member Functions |
|
FilteredEventListener () | |
Constructs a FilteredEventListener empty instance. More... |
|
FilteredEventListener (IEventListener delegate_, params IEventFilter[] filterSet) | |
Constructs a FilteredEventListener instance with one delegate. More... |
|
virtual T | AttachEventListener< T > (T delegate_, params IEventFilter[] filterSet) |
Attaches another IEventListener delegate with its filters. More... |
|
virtual void | EventOccurred (IEventData data, EventType type) |
Called when some event occurs during parsing a content stream. More... |
|
virtual ICollection< EventType > | GetSupportedEvents () |
Provides the set of event types this listener supports. More... |
|
An event listener which filters events on the fly before passing them on to the delegate.
|
inline |
Constructs a FilteredEventListener empty instance.
Constructs a FilteredEventListener empty instance. Use AttachEventListener
|
inline |
Constructs a FilteredEventListener instance with one delegate.
Constructs a FilteredEventListener instance with one delegate. Use AttachEventListener
delegate_ | a delegate that will 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 |
|
inlinevirtual |
Attaches another IEventListener delegate with its filters.
Attaches another IEventListener delegate with its filters. When all the filters attached to the delegate for an event accept the event, the event will be passed on to the delegate. You can attach multiple delegates to this FilteredEventListener instance. The content stream will be parsed just once, so it is better for performance than creating multiple FilteredEventListener instances and parsing the content stream multiple times. This is useful, for instance, when you want to extract content from multiple regions of a page.
T | the type of the delegate |
delegate_ | a delegate that will 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 |
T | : | IEventListener |
|
inlinevirtual |
Called when some event occurs during parsing a content stream.
data | Combines the data required for processing corresponding event type. |
type | Event type. |
Implements iText.Kernel.Pdf.Canvas.Parser.Listener.IEventListener.
|
inlinevirtual |
Provides the set of event types this listener supports.
Provides the set of event types this listener supports. Returns null if all possible event types are supported.
Implements iText.Kernel.Pdf.Canvas.Parser.Listener.IEventListener.