Class FilteredTextEventListener

    • Constructor Detail

      • FilteredTextEventListener

        public FilteredTextEventListener​(ITextExtractionStrategy delegate,
                                         IEventFilter... filterSet)
        Constructs a FilteredTextEventListener instance with a ITextExtractionStrategy delegate.
        Parameters:
        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
    • Method Detail

      • getResultantText

        public java.lang.String getResultantText()
        As an resultant text we use the concatenation of all the resultant text of all the delegates that implement ITextExtractionStrategy.
        Specified by:
        getResultantText in interface ITextExtractionStrategy
        Returns:
        the resulting concatenation of the text extracted from the delegates