Class ProcessorUtil.FragmentRemover

  • All Implemented Interfaces:
    Filter
    Enclosing class:
    ProcessorUtil

    public static class ProcessorUtil.FragmentRemover
    extends DefaultFilter
    To remove all content inside the header and footer.
    Since:
    1.1
    Author:
    tchemit <chemit@codelutin.com>
    • Field Detail

      • header

        protected String header
      • footer

        protected String footer
      • verbose

        protected boolean verbose
    • Constructor Detail

      • FragmentRemover

        public FragmentRemover​(String header,
                               String footer)
    • Method Detail

      • setVerbose

        public void setVerbose​(boolean verbose)
      • performInFilter

        protected String performInFilter​(String ch)
        Description copied from class: DefaultFilter
        methode appele lorsqu'on a la chaine entiere entre le header et le footer.
        Specified by:
        performInFilter in class DefaultFilter
        Parameters:
        ch - la chaine trouve
        Returns:
        ce qu'il faut ecrire dans le fichier de sortie
      • performOutFilter

        protected String performOutFilter​(String ch)
        Description copied from class: DefaultFilter
        methode appele lorsqu'on a la chaine entiere a l'exterieur du header/footer
        Specified by:
        performOutFilter in class DefaultFilter
        Parameters:
        ch - la chaine trouve
        Returns:
        ce qu'il faut ecrire dans le fichier de sortie