Class AbstractMarkupEventBuilder

    • Method Detail

      • initializeCodeFinder

        public void initializeCodeFinder​(boolean useCodeFinder,
                                         String rules)
        Initializes the code finder. this must be called before the first time using it, for example when starting to process the inputs.
        Parameters:
        useCodeFinder - true to use the code finder.
        rules - the string representation of the rules.
      • initializeCodeFinder

        public void initializeCodeFinder​(boolean useCodeFinder,
                                         List<String> rules)
        Initializes the code finder. this must be called before the first time using it, for example when starting to process the inputs.
        Parameters:
        useCodeFinder - true to use the code finder.
        rules - the string representation of the rules.
      • postProcessTextUnit

        protected ITextUnit postProcessTextUnit​(ITextUnit textUnit)
        Description copied from class: EventBuilder
        Do any required post-processing on the TextUnit after endTextUnit is called. Default implementation leaves TextUnit unchanged. Override this method if you need to do format specific handing such as collapsing whitespace.
        Overrides:
        postProcessTextUnit in class EventBuilder
        Parameters:
        textUnit - the ITextUnit to post-process.
        Returns:
        the post-processed ITextUnit.
      • normalizeHtmlText

        public String normalizeHtmlText​(String text,
                                        boolean insideAttribute,
                                        boolean preserveWhitespace)
      • getEncoding

        protected String getEncoding()
      • getLineBreak

        protected String getLineBreak()